- Joined
- Nov 13, 2006
- Messages
- 1,814
[Solved] need somebody who understand why variable is empty?
when i tame chocobo then i put a number(ability lv of target unit) to a variable (chocobosex[player number]) but when i use a skill on chocobo (Rest ability) then variable suddenly empty.
(u can check if u type '1' in chat)
oh and if i made another mistake then pls tell me
when i tame chocobo then i put a number(ability lv of target unit) to a variable (chocobosex[player number]) but when i use a skill on chocobo (Rest ability) then variable suddenly empty.
(u can check if u type '1' in chat)
oh and if i made another mistake then pls tell me
-
Tame Chocobo
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Healing
-
(Owner of (Target unit of ability being cast)) Equal to Neutral Passive
-
-
Actions
-
Set plNR = (Player number of (Owner of (Triggering unit)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Target unit of ability being cast)) Equal to Chocobo
-
((Casting unit) is A Hero) Equal to True
-
(Percentage life of (Target unit of ability being cast)) Greater than or equal to 99.00
-
(ChocoboSex[(Player number of (Owner of (Triggering unit)))] Not equal to 3) and (ChocoboSex[(Player number of (Owner of (Triggering unit)))] Not equal to (Level of Chocobo Sex for (Target unit of ability being cast)))
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Chocobo1[plNR] Equal to No unit
-
-
Then - Actions
-
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
-
Set ChocoboSex[plNR] = (ChocoboSex[plNR] + (Level of Chocobo Sex for (Target unit of ability being cast)))
-
Set Chocobo1[plNR] = (Target unit of ability being cast)
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You caught this a c...
-
Unit - Remove Wander (Neutral) from (Target unit of ability being cast)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Chocobo2[plNR] Equal to No unit
-
-
Then - Actions
-
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Change color
-
Set ChocoboSex[plNR] = (ChocoboSex[plNR] + (Level of Chocobo Sex for (Target unit of ability being cast)))
-
Set Chocobo2[plNR] = (Target unit of ability being cast)
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You caught this a c...
-
Unit - Remove Wander (Neutral) from (Target unit of ability being cast)
-
-
Else - Actions
-
Game - Display to (Player group((Owner of (Triggering unit)))) the text: You cant tame this ...
-
-
-
-
-
-
Else - Actions
-
-
-
-
Rest
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Rest
-
-
Actions
-
Set TempPoint = (Random point in ChocoboStable <gen>)
-
Unit - Move (Triggering unit) instantly to TempPoint
-
Unit - Change ownership of (Triggering unit) to Player 12 (Brown) and Change color
-
Custom script: call RemoveLocation(udg_TempPoint)
-
Unit - Add Wander (Neutral) to (Triggering unit)
-
Game - Display to (All players) the text: (Name of Chocobo1[(Player number of (Owner of (Triggering unit)))])
-
Game - Display to (All players) the text: (Name of Chocobo1[(Player number of (Owner of (Triggering unit)))])
-
-
Attachments
Last edited: