Reviving computer controlled hero

rohezal

New Member
Joined
Apr 16, 2006
Messages
4
Reaction score
0
I am trying to revive hero of computer controlled player. my trigger works for user controlled heroes, but doesn't work for computer controlled heroes. i am using Hero - Instantly Revive action.
 

sticced

Member
Joined
Apr 16, 2006
Messages
7
Reaction score
0
Location
Finland
This should work: (if doesn't there's something wrong about me) :shoot :tnt

Events -
Unit - A unit owned by player 1 (Red) Becomes revivable
Unit - A unit owned by player 2 (Blue) Becomes revivable
Unit - A unit owned by player 3 (Teal) Becomes revivable
Unit - A unit owned by player 4 (Purple) Becomes revivable
Unit - A unit owned by player 5 (Yellow) Becomes revivable
Unit - A unit owned by player 6 (Orange) Becomes revivable
Unit - A unit owned by player 7 (Green) Becomes revivable
Unit - A unit owned by player 8 (Pink) Becomes revivable
Unit - A unit owned by player 9 (Gray) Becomes revivable
Unit - A unit owned by player 10 (Light Blue) Becomes revivable
Unit - A unit owned by player 11 (Dark Green) Becomes revivable
Unit - A unit owned by player 12 (Brown) Becomes revivable

Conditions -
Actions -
Hero - Instantly revive (Revivable hero) at (Position of altar[(Player number of (Owner of Revivable hero)))]),show revival graphics
Unit - Order (Revivable hero) to attack-move To (AltarRallyPoint[(Player number of (Owner of (Revivable hero)))] offset by (0.00, 0.00))
 

rohezal

New Member
Joined
Apr 16, 2006
Messages
4
Reaction score
0
sticced said:
This should work: (if doesn't there's something wrong about me) :shoot :tnt

Events -
Unit - A unit owned by player 1 (Red) Becomes revivable
Unit - A unit owned by player 2 (Blue) Becomes revivable
Unit - A unit owned by player 3 (Teal) Becomes revivable
Unit - A unit owned by player 4 (Purple) Becomes revivable
Unit - A unit owned by player 5 (Yellow) Becomes revivable
Unit - A unit owned by player 6 (Orange) Becomes revivable
Unit - A unit owned by player 7 (Green) Becomes revivable
Unit - A unit owned by player 8 (Pink) Becomes revivable
Unit - A unit owned by player 9 (Gray) Becomes revivable
Unit - A unit owned by player 10 (Light Blue) Becomes revivable
Unit - A unit owned by player 11 (Dark Green) Becomes revivable
Unit - A unit owned by player 12 (Brown) Becomes revivable

Conditions -
Actions -
Hero - Instantly revive (Revivable hero) at (Position of altar[(Player number of (Owner of Revivable hero)))]),show revival graphics
Unit - Order (Revivable hero) to attack-move To (AltarRallyPoint[(Player number of (Owner of (Revivable hero)))] offset by (0.00, 0.00))
No, trigger is executed when hero dies, but this action doesn't work for computer controlled heroes.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
Also, that trigger would only work when all 12 heroes are dead. Since every condition/events must return true in order for the trigger to "work". Shouldn't you try something more generic?
 

rohezal

New Member
Joined
Apr 16, 2006
Messages
4
Reaction score
0
Hellwolf_36 said:
Also, that trigger would only work when all 12 heroes are dead. Since every condition/events must return true in order for the trigger to "work". Shouldn't you try something more generic?
Trigger is executed when any event happens and all conditions are true i think. But events and conditions aren't important now, trigger is executed but action does nothing.
I've also tried revive order on altar, but it didn't work.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
The Hero - Instantly Revived Hero needs to have an event where the hero dies. Then the function can be directed thru (Last Dying hero) or (Dead Hero owned by player whatever) or something like that.

Those trigger lines can be confusing to write.
 

sticced

Member
Joined
Apr 16, 2006
Messages
7
Reaction score
0
Location
Finland
That trigger i used works. Atleast on me.:frustrate
 

rohezal

New Member
Joined
Apr 16, 2006
Messages
4
Reaction score
0
Hellwolf_36 said:
The Hero - Instantly Revived Hero needs to have an event where the hero dies. Then the function can be directed thru (Last Dying hero) or (Dead Hero owned by player whatever) or something like that.

Those trigger lines can be confusing to write.
Events/conditions are ok, but action doesn't work for computer controlled players, it works for user controled players.
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
(Position of altar[(Player number of (Owner of Revivable hero)))]
Could it be the array? You can also add a condition to check and see if the guy is a in fact computer controlled.
 

NewPosts

New threads

Top