| 03-12-2004, 02:03 AM | #1 |
Is there anyway to create a unit with a certain level? I've seen where you can create a random creep at a certain level, but not a hero. I'm trying to create a trigger so that if a hero enters a region, the game spawns another hero exactly like the hero that entered the region with the same level. I didn't use last created unit action to set the created hero's level because I have other units spawning all the time in this map. |
| 03-12-2004, 02:48 AM | #2 |
yea there is a way u have to creat the unit then set the experince for the hero for the last created hero.. h/o let me get it |
| 03-12-2004, 02:51 AM | #3 |
well this is the only way i can figure it out unit enters Events Unit - A unit leaves Region 000 <gen> Conditions ((Triggering unit) is A Hero) Equal to True Actions Unit - Create 1 Paladin for (Picked player) at (Center of Region 000 <gen>) facing Default building facing degrees Hero - Add 1000 experience to (Last created unit), Hide level-up graphics |
| 03-12-2004, 03:48 PM | #4 |
what about the other creeps that I have spawning? Would this work? Events Unit - A unit enters Region 098 <gen> Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Triggering unit) is A Hero) Equal to True (Owner of (Triggering unit)) Equal to Player 9 (Gray) Then - Actions Hero - Set (Triggering unit) Hero-level to (Hero level of 18 0216 <gen>), Hide level-up graphics Else - Actions Do nothing |
| 03-12-2004, 04:41 PM | #5 |
Yes, yes it would. |
