Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
SomeAuthor
Junior Member
 
Join Date: Feb 2010
Posts: 4

Old February 1st, 2010, 07:38 AM
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.
SomeAuthor is offline   #1 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old February 2nd, 2010, 04:46 PM
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
This will assign the "points5" tag to the unit when you've selected 5+ points.

Then, set the live expression of option A to:

Code:
val:somegroup.points? >= 5
This means "check the points tag - if it has a value of >= 5, make the option live". You can add similar "points10" or "points15" tags if you want to control other options the same way with more points. (Option A must have a larger priority than the points option for this to work).

Hope this helps!
Colen is offline   #2 Reply With Quote
SomeAuthor
Junior Member
 
Join Date: Feb 2010
Posts: 4

Old February 3rd, 2010, 10:06 AM
Thank you.

After my post, I wrapped my mind around the tag concept (sometimes it helps to RTFM ), which made everything so much easier.
SomeAuthor is offline   #3 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:18 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.