Page 1 of 1

SetAttrib...Action Points

Posted: Sat Jul 18, 2015 9:01 am
by ElMinotauro
Hi,

Could say me if will be posible to modifed the AP (Action Points) during the game to a individual unit?
Had I use the sentence SetAttrib(id,string,value)?
How could it be done?
Id= Would it be the individual unit ?
string = Would it be the Attribute AP ?
value = ?

Bye

Re: SetAttrib...Action Points

Posted: Sat Jul 18, 2015 5:57 pm
by ElMinotauro
Hi,

I have it checked
It would be for example: SetAttrib(1003,"AP",12);
So the unit 1003 get a AP=12 during the game

Bye

Re: SetAttrib...Action Points

Posted: Sat Jul 18, 2015 10:39 pm
by ElMinotauro
Hi,

Other checking.
I have created a new unit with AP=0
Obviously in the game this new unit appers with AP=0
With a script you can to setting to AP12. Anyway at the moment i have not been able to move the unit. Always Its destination is -1 -1
I don“t know the reason at the moment

Bye

Re: SetAttrib...Action Points

Posted: Sun Jul 19, 2015 6:11 pm
by rbodleyscott
The AP is reset to the Squads file value at the start of each turn. So if you want to script it to differ from the Squads file value, you will need to set it differently each turn after the AP has been reset in StartTurn(me) in startTurn.bsf

The more usual thing to do would be to set it to what you want it to be for the unit in the Squads file.

Re: SetAttrib...Action Points

Posted: Mon Jul 20, 2015 1:54 pm
by ElMinotauro
Hi,

Ok

Kind regards