- Joined
- Feb 24, 2009
- Messages
- 110
Is it possible?
For example: Lets say I want a unit to be named "Level 1", so I go to editor and change his name to that, ok we all know that
But, what I want, is the Custom Unit to be called something like: "Level [var]", so whenever I change that variable var with triggers, next time I create that unit is called "Level 2", "level 3", etc
I think something like this can be done, by reading the skill "Banish" Text-Tooltip-learn-extended
Conclusion:
I want the Text-Name to be something like: Level <variable value>, but I dont know exactly how to call my variable.
And does anyone know how does "%d" work?
For example: Lets say I want a unit to be named "Level 1", so I go to editor and change his name to that, ok we all know that
But, what I want, is the Custom Unit to be called something like: "Level [var]", so whenever I change that variable var with triggers, next time I create that unit is called "Level 2", "level 3", etc
I think something like this can be done, by reading the skill "Banish" Text-Tooltip-learn-extended
Turns a non-mechanical unit ethereal and slows its movement speed by <AHbn,DataA1,%>% for a short duration. Ethereal creatures cannot attack, but they can cast spells and certain spells cast upon them will have a greater effect. |n|n|cffffcc00Level 1|r - <AHbn,Cost1> mana, lasts <AHbn,Dur1> seconds. |n|cffffcc00Level 2|r - <AHbn,Cost2> mana, lasts <AHbn,Dur2> seconds. |n|cffffcc00Level 3|r - <AHbn,Cost3> mana, lasts <AHbn,Dur3> seconds.
the non extended text-tooltip-learn also uses another variable called %d:
Learn |cffffcc00B|ranish - [|cffffcc00Level %d|r]
Learn |cffffcc00B|ranish - [|cffffcc00Level %d|r]
Conclusion:
I want the Text-Name to be something like: Level <variable value>, but I dont know exactly how to call my variable.
And does anyone know how does "%d" work?