Recuable Heros

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
Is there a way I can make a hero that a certain player can use, but no other players, and the unit doesn't belong to that player? I want to make something like the heros are mercenaries but only for that player, and making the hero belong to that player would really bug up a lot of my triggers..
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
Is there a way I can make a hero that a certain player can use, but no other players, and the unit doesn't belong to that player? I want to make something like the heros are mercenaries but only for that player, and making the hero belong to that player would really bug up a lot of my triggers..
Yes, use a trigger, probably. But the other players would be able to see the icon/hero (depends on how you get the hero) - just not have a hero. Basically, you make a trigger so when that they pick the hero, check the player of the triggering unit and if it isn't right, remove the hero. For example, say I step on a region to choose that hero:

Events:
Unit enters [SomeWeirdRegion]

Conditions:
Whatever you need

Actions:
If conditions Then actions Else actions
If conditions
And
Entering Unit [is equal to] [Wisp]
Player of [Entering Unit] [is not equal to] [Player 1 (Red)]​
Then actions
Do nothing​
Else actions
Create [1] [Your hero] at [Wherever you want] facing [Wherever you want]​

*
 

ChrisH36

Guy with Most Posts on Quiet Board.
Joined
May 20, 2003
Messages
15,042
Reaction score
4
Location
Temple Prime, Sarajevo
In other words, you check the player before you create it. Just remember that if the other player tries to make it, refund thier money with Player Properties - Set Gold and Lumber.
 

NewPosts

New threads

Top