1
XPiratez / Re: Stuff I'd love to see in XPiratez!
« on: June 21, 2024, 02:28:08 pm »
Some enemies to have randomized stats. I tried it a while back but jesus it was a pain.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Example
Dealing with the disables is no longer a complete answer, there are several exclusive OR junctions related to the codexes("gold or red""Any but red" for examples). Because of the way these junctions are designed you will need to manually delete all the ORs and then give yourself every tech that is dependent on them. Doing 4 drill projects and there codex's triggers all the exclusive ORs and you end up with less unlocks then normal.
Right, here's a sample script to randomly increase sectoid HP by 0-10:Code: [Select]armors:
- type: SECTOID_ARMOR0
scripts:
createUnit: |
var int rngValue;
var int newValue;
battle_game.randomRange rngValue 0 10;
unit.getHealth newValue;
add newValue rngValue;
unit.Stats.setHealth newValue;
unit.setHealth newValue;
return;