Hey folks, i am trying to make a RPG, and i want to make a revive system, so when you'r hero dies. You gain 1 "Ghost" so you have to go find your grave, and attack it to revive, i already try'd to make it. But it seems i am doing somthing wrong?
Can anyone tell me what?
Apriciated, Thanks
Trigger:
- Player 1 Dies
- Events
- Unit - A unit owned by Player 1 (Red) Dies
- Conditions
- ((Triggering unit) is A Hero) Equal to True
- Actions
- Unit - Create 1 ATTACK ME TO REVIVE for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
- Game - Display to (All players) the text: ((Name of (Triggering player)) + Died! .. You'r Ghost has spawned in Dallian!)
- Wait 1.00 seconds
- Camera - Pan camera for Player 1 (Red) to (Center of Game Spawn <gen>) over 1.00 seconds
- Unit - Create 1 You'r Ghost for Player 1 (Red) at (Center of Game Spawn <gen>) facing Default building facing degrees
- Trigger - Add to (This trigger) the event (Unit - A unit owned by Player 1 (Red) Is attacked)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Triggering unit)) Equal to ATTACK ME TO REVIVE
- ((Triggering unit) is A structure) Equal to True
- Then - Actions
- Unit - Remove (Attacked unit) from the game
- Unit - Remove (Attacking unit) from the game
- Wait 1.00 seconds
- Hero - Instantly revive (Dying unit) at (Position of (Attacking unit)), Show revival graphics
- Else - Actions
- Do nothing
- If - Conditions
- Events
Can anyone tell me what?
Apriciated, Thanks