| 08-19-2002, 05:57 PM | #1 |
Guest | Ok, i have a hero selection thing, and when the peasant walks into the region to select that hero, it's supposed to kill him, and then create the hero at Red's spawning point.But instead, it kills all the peasants, and spawns the hero type i selected to the othe players spot, even though all the triggers are sperate.Does anyone know what i'm doing wrong?Here's the exact line of triggers i'm using: Events: Unit - A Unit enters Melee select <gen> Conditions: Unit-type of (Triggering Unit)) Equal to Peasant Owner of (Triggering Unit)) Equal to Player 1 (Red) Actions: Unit - Kill Peasant 0038 <gen> Unit - Create 1 "Army Captain (Melee)" Player 1 (Red) At (Center of Red Spawn <gen> )) facing default building facing degrees Hero - Create Ankh Reincarnation and give it to (Last created Unit) |
| 08-19-2002, 07:26 PM | #2 |
Guest | I think its better if u just check the unit type and use the trigger create 1 ???? for owner of triggering unit at blah blah blah....!!! Action : Unit enter ???<gen> Condition : Unit type of triggering unit equal to ???? Action : Create 1 (hero) for Owner of (triggering unit) at location!!! Then Remove triggering unit!!! Any better Suggestion?! |
| 08-19-2002, 08:16 PM | #3 | |
Quote:
try using (Triggering Unit) instead of a specific unit... |
| 08-19-2002, 08:40 PM | #4 | |
Guest | Quote:
I did that before, it still didn't work.But, i'll try what Titus said now.. |
| 08-19-2002, 09:09 PM | #5 |
Guest | Well, the peasant killing thing is fixed now, but it still makes a unit for everyone when i pick a guy.Any ideas? |
| 08-19-2002, 11:37 PM | #6 |
What i'm doing for my RPG is having a Unit A come within X of another Unit B, explode the triggering Unit A and create a unit for the owner of the triggering unit and create a Unit B in a certain region. |
| 08-20-2002, 12:35 AM | #7 |
Guest | Thanks anyway, i got it to work.:) |
