Kikac_NNGK
Well-Known Member
- Reaction score
- 33
Hi guys! I'm tryin to make a spell that it can be cast only at night. So i made 2 spells, everythings perfect exept the level of the abilities. Cos they're 2 different abilities, so i cant set the levels of the abilities. Myb u didnt understand me so heres the triggers i made:
My Trigger for learnin skills:
My trigger for the game time between 18.00 and 6.00
My trigger for the game time btween 6.00 and 18.00
So if u can help me somehow, tell me where's my mistake, PLS, i'm w8in for ur help.
Thanks in advance!
My Trigger for learnin skills:
Code:
FDTD Skill
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to From Dusk Till Dawn
Actions
Set FDTD_Unit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((In-game time of day) Greater than or equal to 6.00) and ((In-game time of day) Less than 18.00)
Then - Actions
Wait until (((In-game time of day) Greater than or equal to 6.00) and ((In-game time of day) Less than 18.00)), checking every 0.30 seconds
Unit - Add From Dusk Till Dawn - (Day) to FDTD_Unit
Wait 0.01 seconds
Unit - Set level of From Dusk Till Dawn - (Day) for FDTD_Unit to (Level of From Dusk Till Dawn for FDTD_Unit)
Wait 0.01 seconds
Unit - Remove From Dusk Till Dawn from FDTD_Unit
Else - Actions
My trigger for the game time between 18.00 and 6.00
Code:
FDTD Starting Time
Events
Game - The in-game time of day becomes Greater than or equal to 18.00
Game - The in-game time of day becomes Less than 6.00
Conditions
Actions
Wait until (((In-game time of day) Greater than or equal to 18.00) and ((In-game time of day) Less than 6.00)), checking every 0.30 seconds
Unit - Add From Dusk Till Dawn to FDTD_Unit
Wait 0.01 seconds
Unit - Set level of From Dusk Till Dawn for FDTD_Unit to (Level of From Dusk Till Dawn - (Day) for FDTD_Unit)
Wait 0.01 seconds
Unit - Remove From Dusk Till Dawn - (Day) from FDTD_Unit
My trigger for the game time btween 6.00 and 18.00
Code:
FDTD Finishing Time
Events
Game - The in-game time of day becomes Greater than or equal to 6.00
Game - The in-game time of day becomes Less than 18.00
Conditions
Actions
Wait until (((In-game time of day) Greater than or equal to 6.00) and ((In-game time of day) Less than 18.00)), checking every 0.30 seconds
Unit - Add From Dusk Till Dawn - (Day) to FDTD_Unit
Wait 0.01 seconds
Unit - Set level of From Dusk Till Dawn - (Day) for FDTD_Unit to (Level of From Dusk Till Dawn for FDTD_Unit)
Wait 0.01 seconds
Unit - Remove From Dusk Till Dawn from FDTD_Unit
So if u can help me somehow, tell me where's my mistake, PLS, i'm w8in for ur help.
Thanks in advance!