- 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.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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))
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 ^^
Untitled Trigger 001

Events


Map initialization

Conditions

Actions


Set Hero[1] = Noob 0029 <gen>
No, I mean the trigger for when they tier up![]()
Turn into Swordsman

Events


Unit - A unit enters swordsman <gen>

Conditions


((Triggering unit) is A Hero) Equal to True


(Unit-type of (Triggering unit)) Equal to Noob


(Hero level of (Triggering unit)) Greater than or equal to 10

Actions


Unit - Remove (Triggering unit) from the game


Unit - Create 1 Relenza for (Owner of (Triggering unit)) at (Center of after job change 1 <gen>) facing Default building facing degrees
Set Hero[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
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)