- Joined
- Sep 30, 2011
- Messages
- 60
could someone fix my trigger:
-
Chibaku Tensei
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Chibaku Tensei
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




H_Index Equal to 0
-
-



Then - Actions
-




Trigger - Turn on Chibaku Tensei Loop <gen>
-
-



Else - Actions
-
-


Set H_Index = (H_Index + 1)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




H_Index Greater than H_Index_Max
-
-



Then - Actions
-




Set H_Spell[H_Index] = H_Index
-




Set H_Index_Max = H_Index
-
-



Else - Actions
-
-


Set H_Mui = H_Spell[H_Index]
-


Set H_Chibacu[H_Mui] = (Triggering unit)
-


Set H_Cast_Point[H_Mui] = (Target point of ability being cast)
-


Set H_Ability[H_Mui] = Crow Form
-


Unit - Create 1 dummy Chibaku Big Ball for (Owner of H_Chibacu[H_Mui]) at H_Cast_Point[H_Mui] facing Default building facing degrees
-


Set H_BigStone[H_Mui] = (Last created unit)
-


Set H_Stone_Size[H_Mui] = 0
-


Set H_Spell_Last[H_Mui] = 70
-


Set H_Speed1[H_Mui] = 30.00
-


Set H_Speed2[H_Mui] = 10.00
-


Set H_Knockback_Time[H_Mui] = 10
-
-
-
Chibaku Tensei
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Chibaku Tensei
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




H_Index Equal to 0
-
-



Then - Actions
-




Trigger - Turn on Chibaku Tensei Loop <gen>
-
-



Else - Actions
-
-


Set H_Index = (H_Index + 1)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




H_Index Greater than H_Index_Max
-
-



Then - Actions
-




Set H_Spell[H_Index] = H_Index
-




Set H_Index_Max = H_Index
-
-



Else - Actions
-
-


Set H_Mui = H_Spell[H_Index]
-


Set H_Chibacu[H_Mui] = (Triggering unit)
-


Set H_Cast_Point[H_Mui] = (Target point of ability being cast)
-


Set H_Ability[H_Mui] = Crow Form
-


Unit - Create 1 dummy Chibaku Big Ball for (Owner of H_Chibacu[H_Mui]) at H_Cast_Point[H_Mui] facing Default building facing degrees
-


Set H_BigStone[H_Mui] = (Last created unit)
-


Set H_Stone_Size[H_Mui] = 0
-


Set H_Spell_Last[H_Mui] = 70
-


Set H_Speed1[H_Mui] = 30.00
-


Set H_Speed2[H_Mui] = 10.00
-


Set H_Knockback_Time[H_Mui] = 10
-
-
-
Chibaku Removed
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Triggering unit)) Equal to dummy Chibaku Big Ball
-
-

Actions
-


Wait 2.00 seconds
-


Unit - Remove (Triggering unit) from the game
-
-
(sorry for my bad english)
-
Untitled Trigger 003
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set Tavern_Point = (Center of Tavern <gen>)
-


For each (Integer A) from 1 to 12, do (Actions)
-



Loop - Actions
-




Unit - Create 1 Hero Picker for (Player((Integer A))) at Tavern_Point facing Default building facing degrees
-
-
-
-
-
Anti Teamkill
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to True
-
-

Actions
-


Unit - Order (Attacking unit) to Stop
-
-
-
Rinnegan
-

Events
-


Unit - A unit Learns a skill
-
-

Conditions
-


(Learned Hero Skill) Equal to Rinnegan
-


(Unit-type of (Triggering unit)) Equal to Deva Path
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Level of Rinnegan for (Triggering unit)) Equal to 1
-
-



Then - Actions
-




Unit - Add Rinnegan Spell Shield (Amulet) to (Triggering unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Level of Rinnegan for (Triggering unit)) Equal to 2
-
-





Then - Actions
-






Unit - Increase level of Rinnegan Spell Shield (Amulet) for (Triggering unit)
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Level of Rinnegan for (Triggering unit)) Equal to 3
-
-







Then - Actions
-








Unit - Increase level of Rinnegan Spell Shield (Amulet) for (Triggering unit)
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Level of Rinnegan for (Triggering unit)) Equal to 4
-
-









Then - Actions
-










Unit - Increase level of Rinnegan Spell Shield (Amulet) for (Triggering unit)
-
-









Else - Actions
-
-
-
-
-
-
-
-
-
-
Untitled Trigger 006
-

Events
-


Unit - A unit Sells a unit
-
-

Conditions
-


((Sold unit) is A Hero) Equal to True
-
-

Actions
-


Unit - Remove (Buying unit) from the game
-
-
thanks



