| 09-14-2006, 04:02 PM | #2 |
You could create a new global variable of the type unit-type and make it an array. start with setting all your regular units into it and then (ill assume you have 10 heros) set the hero units (in the same order as you did with the regular ones, ie: if you started with a peasant youll set slot nr 11 to the peasant hero). then.. oh right, you could need a new variable of the integer type. use the same event and condition as your current trigger. add the first action line aswell after that, do a regular integer a loop with an if/then/else in it: Trigger: ![]() if (Unit-type of Blue_Clicked_Unit) Equal to your_unit-type_var[Integer A]) then
![]() set your_integer_variable = Integer A
![]() else
![]() endifafter that use: Trigger: Unit - Replace Blue_Clicked_Unit with a your_unit-type_var[your_integer_var+10] using The new unit's relative life and mana(sloppy i know, didnt feel like opening up WE) hope you understood the main concept :) |
| 09-14-2006, 05:55 PM | #3 |
Selection events are terrible, they happen with a delay. |
| 09-15-2006, 01:32 AM | #4 | |
Quote:
Not when I play... Probably because I'm hosting? |
