- Joined
- Sep 24, 2007
- Messages
- 64
I'm hung up on a shadowmeld spell.
I've browsed the forums a bit for a solution or alternate system but I didn't find anything :F
What I am trying to do is a shadowmeld that works daytime, and if I'm not totally off the only way to do this is by triggers. (?)
The simple(?) code follows
Currently, if you stand at a position long enough and then move you will not lose invisibility until you stop moving.(!)
Help very much appreciated.
I've browsed the forums a bit for a solution or alternate system but I didn't find anything :F
What I am trying to do is a shadowmeld that works daytime, and if I'm not totally off the only way to do this is by triggers. (?)
The simple(?) code follows
- Events:
- Time - Every 0.1 seconds of game time.
- Conditions:
-
Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Distance between StoredPosition and (Position of unit)) Equal to 0.00
-
Then - Actions
- Set Counter = (Counter + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- ActiveBoolean Equal to False
- Counter Greater than or Equal to 70
-
Then - Actions:
- Unit - Add Permanent Invisibility to Huntress
- Set ActiveBoolean = True
-
Else - Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions):
-
If - Conditions
- Counter Less than 70
-
Then - Actions
- Unit - Remove Permanent Invisibility from unit
- Set ActiveBoolean = False
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions):
-
If - Conditions:
-
Else - Actions
- Set Counter = 0;
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Set StoredPosition = (Position of unit)
Currently, if you stand at a position long enough and then move you will not lose invisibility until you stop moving.(!)
Help very much appreciated.