- Joined
- Jun 17, 2011
- Messages
- 64
i want to know how to make a trigger so when you kill the boss you teleport to the item room.
Hm, something like this?
i tried that it didnt workDo you mean this?
- Untitled Trigger 001
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Dying unit)) Equal to Boss
- Actions
- Unit - Move (Killing unit) instantly to (Center of (Playable map area))
"Hero" is a unit, not a player. You can't say a unit variable has to be set to a player, coding doesn't work that way.yes like that but how do i make so
Set Hero[1] = owner of unit
i cant find it
"Hero" is a unit, not a player. You can't say a unit variable has to be set to a player, coding doesn't work that way.
Well, that depends on how your map works.
Do you use a hero-choose system (with a tavern or something)? Because then it's quite easy, just show me the trigger and I'll add the action you need
Oh, not really actually... just select the variable, set the "X" in "Hero[X]" to the player number (for red, it would be 1, for teal it would be 3 etc).No each player starts out with a novice. would it be easier just to have a tavern?
Oh, not really actually... just select the variable, set the "X" in "Hero[X]" to the player number (for red, it would be 1, for teal it would be 3 etc).
Then set the value to the novice that player starts out with.
Then give me the trigger for that one and I'll tell you the action ^^but later they can teir up to different classes and i tried that it didnt work
Then give me the trigger for that one and I'll tell you the action ^^
No, I mean the trigger for when they tier up
Just addAt the end of that trigger (and all other triggers with tier changes).
- Set Hero[(Player number of (Owner of (Triggering unit)))] = (Last created unit)