• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Overrides

Colen

Ex-Staff
At 10:39 AM 3/30/2006 -0500, you wrote:

>I have a unit that comes with a set selection of options: Op1, Op2 and Op3
>there is also a fourth option, Op4, that replaces Op1. This works perfectly.
>
>When Op4 is selected, I need it to change the name of the unit. I
>have tried using an Override with the condition
>unit.option[Op4].selection = 1, however all i get is an error
>stating that my syntax is wrong. How do i fix this?


If an option needs to change the name of the unit, just give it (the
option) an evaluate script of:

unit.name = "Your message here!"

Overrides are only needed if you want things to change based on the
current race or rulesets. The only thing they can test is global tags
- local tags and options can't be seen by them.


Hope this helps.



--
Colen McAlister (colen@wolflair.com)
Chief Engineer, Lone Wolf Development
http://www.wolflair.com/
 
Back
Top