Junior Member
Join Date: Feb 2010
Posts: 4
|
Hello,
I am adding some campaign stuff to a set of data files (all my changes are in an .aug and a .dat file). Basically, I define a new unit; the user will add one of this unit to his roster, and everything related to the campaign is part of this unit. Let's call the unit "treasury". One of these things are "campaign points". Users can earn these points during gameplay, and will then simply increase the option/stat "campaign points" of the treasury. Now, I want to enable (ungrey/show) some option A of the treasury only if there are 5 or more campaign points in the treasury. How do I do this? I fooled around a lot with exclusions and live tags, but simply could not get it to work. What is the usual way to do this? Thanks! Last edited by SomeAuthor; February 1st, 2010 at 07:41 AM. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
First, add a tag in your augmentation file, called "points5" or something similar. Then, in the option eval script for the "campaign points" option, do something like:
Code:
if (this.selection >= 5) then perform parent.assign[somegroup.points5] endif Then, set the live expression of option A to: Code:
val:somegroup.points? >= 5 Hope this helps! |
#2 |
Junior Member
Join Date: Feb 2010
Posts: 4
|
Thank you.
After my post, I wrapped my mind around the tag concept (sometimes it helps to RTFM ), which made everything so much easier. |
#3 |
|
|