- Joined
- Oct 12, 2005
- Messages
- 281
Whenever I enter the "Custom Script: loop" section of this:
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Your Ability
Actions
-------- Required Variables --------
-------- - AntiLeak_Point --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 5)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 6)) Equal to Your Item
Then - Actions
Set AntiLeak_Point = (Position of (Triggering unit))
Item - Create Your Potion at AntiLeak_Point
Custom script: call RemoveLocation(udg_AntiLeak_Point)
Hero - Give (Last created item) to (Triggering unit)
Custom script: set bj_forLoopAIndex = 0
Custom script: loop
Custom script: set bj_forLoopAIndex = bj_forLoopAIndex + 1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Your Item
Then - Actions
Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
Skip remaining actions
Else - Actions
Custom script: endloop
Else - Actions
, My world editor just crashes can someone tell me what is wrong?
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Your Ability
Actions
-------- Required Variables --------
-------- - AntiLeak_Point --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item carried by (Triggering unit) in slot 1)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 2)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 3)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 4)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 5)) Equal to Your Item
(Item-type of (Item carried by (Triggering unit) in slot 6)) Equal to Your Item
Then - Actions
Set AntiLeak_Point = (Position of (Triggering unit))
Item - Create Your Potion at AntiLeak_Point
Custom script: call RemoveLocation(udg_AntiLeak_Point)
Hero - Give (Last created item) to (Triggering unit)
Custom script: set bj_forLoopAIndex = 0
Custom script: loop
Custom script: set bj_forLoopAIndex = bj_forLoopAIndex + 1
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Your Item
Then - Actions
Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
Skip remaining actions
Else - Actions
Custom script: endloop
Else - Actions
, My world editor just crashes can someone tell me what is wrong?