- Joined
- Jun 2, 2009
- Messages
- 1,233
-
BandajGST
-
Events
-
Unit - A unit Begins channeling an ability
-
-
Conditions
-
(Ability being cast) Equal to Bandaj // Aktif
-
(Charges remaining in (Item carried by (Triggering unit) of type Bandaj)) Greater than or equal to 1
-
BANDAGE[(Player number of (Owner of (Triggering unit)))] Equal to False
-
-
Actions
-
Set BANDAGE[(Player number of (Owner of (Triggering unit)))] = True
-
Game - Display to (All players) the text: (Name of the current trigger)
-
Item - Set charges remaining in (Item carried by (Triggering unit) of type Bandaj) to ((Charges remaining in (Item carried by (Triggering unit) of type Bandaj)) - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Charges remaining in (Item carried by (Triggering unit) of type Bandaj)) Less than or equal to 0
-
-
Then - Actions
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
-
-
-
-
Else - Actions
-
-
Set BandajSTAT[(Player number of (Owner of (Triggering unit)))] = (5.00 - ((Real((Agility of (Triggering unit) (Include bonuses)))) x 0.03))
-
Set UncleTheBest = (Triggering unit)
-
Unit - Pause UncleTheBest
-
Set GST_Trigger = BandajEnd <gen>
-
Custom script: call GST_Unit(udg_UncleTheBest, false, udg_BandajSTAT[GetPlayerId(GetOwningPlayer(GetTriggerUnit())) + 1])
-
-
-
BandajEnd
-
Events
-
Conditions
-
Actions
-
Set BANDAGE[(Custom value of GST_Unit1)] = False
-
Unit - Unpause GST_Unit1
-
Unit - Set life of GST_Unit1 to ((Life of GST_Unit1) + 10.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
BANDAGE[(Custom value of GST_Unit1)] Equal to False
-
-
Then - Actions
-
Game - Display to (All players) the text: false
-
-
Else - Actions
-
Game - Display to (All players) the text: true
-
-
-
-
This system can detect and unpause GST_Unit1 but it cannot set false to Custom value of GST_Unit1
Or it does but after second use, this trigger not runs again. I can cast this ability anytime i want without pause.
Update: Here is the source of the problem.
BANDAGE[2] Equal to False this one never turns to False.
And if i disable this condition
BANDAGE[(Player number of (Owner of (Triggering unit)))] Equal to False it starts infinite loop. But still i don't know how to fix it.
Update 2:
-
Set BANDAGE[(Custom value of GST_Unit1)] = False
-
Set BANDAGE[(Player number of (Owner of GST_Unit1))] = False
-
Set BANDAGE[(Player number of (Owner of UncleTheBest))] = False
Last edited: