"label_unit" is an exclusively battle-map command, used for scripted battles.
"label_unit" is an exclusively battle-map command, used for scripted battles.
Ah, I see, thanks for pointing this out to me![]()
hmm so the idea is probably not going to work?
Last edited by Hero of the West; April 10, 2010 at 03:26 PM.
Patronized by Eöl
Fantastic discovery... a while ago I wrote a saxon fyrd script and used destroy_units to disband all the fyrd units, either by player action (monitoring UnitDisbanded) or script after a number of turns had passed since the fyrd had been called. But I had to make do with an existing unit attribute to use as the dummy (and try to find one that I wasn't using, like can_sap), which severely limited the script's application.
The ability to create your own dummy attributes means that I can have separate fyrds for each region, all of which can be disbanded at different times.
this could be used to have a maximum number of certain units available at any time
just have the game check every turn how many units with the xyz-unit atribute there are and disable recruiting them via a triggered event if there is the given number or more
great find btw
oh and shouldn't this be moved to the tutorials section of the forum?
Last edited by fightermedic; August 08, 2010 at 05:06 PM.
Great stuff.
Can custom attributes be used in other commands/conditions? I tried with I_NumberUnitsInSettlement but it didn't work.
@Withwnar
If a single command recognizes a custom attrib from the EDU then so does every other command will.![]()
Thanks Ishan but "with a few exceptions" perhaps? create_unit doesn't seem to work, for instance. Unsurprisingly; it wouldn't be necessarily creating a unit in this case which is its purpose.
They can be used where the docudemons specifies 'unit attribute' as a parameter.
Thanks Taiji. As far as I can see destroy_units is the only command with such a parameter. Plus - I think - these conditions:
I_BattlePlayerArmyNumberOfAttribute
I_BattleEnemyArmyNumberOfAttribute
I_BattlePlayerArmyPercentageOfAttribute
I_BattleEnemyArmyPercentageOfAttribute
PercentageUnitAttribute
And it would be possible to destroy units under a % of their original strength, or without a minimum number of soldiers? This would kill characters?
There are currently 1 users browsing this thread. (0 members and 1 guests)