View Single Post
Garfunkel
Senior Member
Volunteer Data File Author
 
Join Date: May 2005
Location: Grenoble, France
Posts: 167

Old December 12th, 2011, 12:46 AM
Hello,

For your XP system, here is what I recommend :
Considering you have a stat called CC in your game system :


On the .def File :
- Create an XP stat (Exactly following the same process than the others)
- Create an exclusion group called XP_limit with the following range : 0 @XP. The upper limit will follow the XP stat of the character.

On the data file :
- Create an option called 'Raise CC by one'. Add the following script as EVAL script :

unit.basestat[CC] +=selection/5

- Create a unit 'Henchmen'. Fill the XP stat with 50, and all others stats with the bases.
- link the option to the unit (Click new on the unit tab\option section)
- Use the following properties :
Textcost = " "
Max = "100"
Incr = "5"
Usage for XP_limit group = "1"


Quote:
<option id="XXTEST" name="Raise CC by one" abbrev="" category="Leader" priority="0" cost="0">
<evaluate>unit.basestat[CC] +=selection/5</evaluate>
</option>
Quote:
<link option="XXTEST" rangemax="100" rangeincr="5" index="0">
<exclref id="XP_limit"/>
</link>
Would you have several stats a henchmen could increase, just copy the option and duplicate the link, changing the name and the modified stat on the option EVAL script.

As you will use this load of options for several units, I recommend creating a Linkset (On the data file) to regroup all your stat modifiers options.

Hope that helps

Frédéric

Last edited by Garfunkel; December 12th, 2011 at 12:50 AM.
Garfunkel is offline   #6 Reply With Quote