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/
				
			>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/
