- Joined
- Jun 7, 2008
- Messages
- 440
Im looking to Turn a hero spell into a charged item.. Anyone know how to go about this As well i posted the following in the wrong section, i seriously dont mean to repost this, but i dont think i can move it so im just going to copy and paste it <noob style > Now with this the actions have got me totally stumped. Maybe i can get help with this too and nail two birds with one stone. What i want to end up doing with this trigger is make it so that when a hero clicks on a hero, the hero he clicked on is the selected one he playes throughout the duration of the game
Hero Selection.
Events
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit (GOT THIS PART)
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red) (GOT THIS PART)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions (STUCK HERE BIGTIME )
HasSelected[(Player number of (Triggering player))] Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to selected_hero[(Player number of (Triggering player))]
Then - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: ((Name of (Triggering unit)) + has been chosen.)
Set HasSelected[(Player number of (Triggering player))] = 2
Unit - Create 1 (Unit-type of selected_hero[(Player number of (Triggering player))]) for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Set selected_hero[(Player number of (Triggering player))] = (Triggering unit)
Else - Actions
Set HasSelected[(Player number of (Triggering player))] = 0
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
HasSelected[(Player number of (Triggering player))] Equal to 0
Then - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: ((Name of (Triggering unit)) + has been selected. Click again to choose.)
Set selected_hero[(Player number of (Triggering player))] = (Triggering unit)
Set HasSelected[(Player number of (Triggering player))] = 1
Else - Actions
Thats what i have. Im stuck right at the top
Hero Selection.
Events
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit (GOT THIS PART)
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red) (GOT THIS PART)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions (STUCK HERE BIGTIME )
HasSelected[(Player number of (Triggering player))] Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to selected_hero[(Player number of (Triggering player))]
Then - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: ((Name of (Triggering unit)) + has been chosen.)
Set HasSelected[(Player number of (Triggering player))] = 2
Unit - Create 1 (Unit-type of selected_hero[(Player number of (Triggering player))]) for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Set selected_hero[(Player number of (Triggering player))] = (Triggering unit)
Else - Actions
Set HasSelected[(Player number of (Triggering player))] = 0
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
HasSelected[(Player number of (Triggering player))] Equal to 0
Then - Actions
Game - Display to (Player group((Triggering player))) for 10.00 seconds the text: ((Name of (Triggering unit)) + has been selected. Click again to choose.)
Set selected_hero[(Player number of (Triggering player))] = (Triggering unit)
Set HasSelected[(Player number of (Triggering player))] = 1
Else - Actions
Thats what i have. Im stuck right at the top