- Joined
- May 1, 2013
- Messages
- 68
I need help fixing this trigger. The problem is, that if the unit using the item isn't a paladin, it should play a sound and give 1 item charge of the item used, which it doesn't. It should also work with different units like, instead of a paladin a barbarian in 1 trigger. It will need to work with 5 different heroes.
If you don't understand just ask.
If you don't understand just ask.
-
Town Portal Scroll Paladin
-
Events
-
Unit - A unit owned by Player 1 (Red) Uses an item
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to Town Portal Scroll
-
(Rogues Camp <gen> contains (Hero manipulating item)) Equal to False
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Hero manipulating item)) Equal to Paladin
-
-
Then - Actions
-
Destructible - Create a Town Portal at (Position of (Hero manipulating item)) facing (Random angle) with scale 1.00 and variation 0
-
Set Town_portal = (Last created destructible)
-
Sound - Play portalcast <gen>
-
Wait 1.00 seconds
-
Sound - Play portalenter <gen>
-
Wait 0.05 seconds
-
Unit - Move (Hero manipulating item) instantly to (Center of gg_rct_Inicio <gen>)
-
Destructible - Remove Town_portal
-
Camera - Pan camera for Player 1 (Red) to (Center of gg_rct_Inicio <gen>) over 0.00 seconds
-
-
Else - Actions
-
Sound - Play Pal_notintown <gen>
-
Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) + 1)
-
-
-
-
Else - Actions
-
-
-
Last edited: