- Joined
- Apr 15, 2016
- Messages
- 118
Trying a Shadow Meld that works DURING DAY.
Please go easy, my second time trying. Is the indexing good ? Or a completly CRAPPY and I should kill myself ? It's not working when the order is canceled and the Perma Invisibility is not being removed. The Order is Channel.
OBS: The HideCurrentIndex is not "invisible"... I mean, its value is 0 and not "-none-" as most of the pro spellmakers variables (somehow they make the Variable invisible, mean, when you try edit it, it doesn't show what kind of variable is it, you can't press ok, etc. you just can't mess).
-
Meld Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Hide Meld Channel
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
MeldHideMaxIndex Equal to 0
-
-
Then - Actions
-
Trigger - Turn on Meld Loop <gen>
-
-
Else - Actions
-
-
Set HIdeMeldCaster[MeldHideMaxIndex] = (Casting unit)
-
Set HIdeMeldCasterPos = (Position of HIdeMeldCaster[MeldHideMaxIndex])
-
Unit - Add Permanent Invisibility to HIdeMeldCaster[MeldHideMaxIndex]
-
Custom script: call RemoveLocation(udg_HIdeMeldCasterPos)
-
-
-
Meld Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer HIdeMeldCurrentIndex) from 1 to MeldHideMaxIndex, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Current order of HIdeMeldCaster[HIdeMeldCurrentIndex]) Not equal to MeldOrder
-
-
Then - Actions
-
Unit - Remove Permanent Invisibility from HIdeMeldCaster[HIdeMeldCurrentIndex]
-
-
Else - Actions
-
Set HIdeMeldCaster[HIdeMeldCurrentIndex] = HIdeMeldCaster[MeldHideMaxIndex]
-
Set MeldHideMaxIndex = (MeldHideMaxIndex - 1)
-
Set HIdeMeldCurrentIndex = (HIdeMeldCurrentIndex - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
MeldHideMaxIndex Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
-
-
-
OBS: The HideCurrentIndex is not "invisible"... I mean, its value is 0 and not "-none-" as most of the pro spellmakers variables (somehow they make the Variable invisible, mean, when you try edit it, it doesn't show what kind of variable is it, you can't press ok, etc. you just can't mess).