Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,223
I recently made a minor system which is supposed to play 'battle music' when entering combat. However it lags once I enter combat.
-
unit enters combat
-
Events
-
Game - CS_combat_event becomes Equal to 1.00
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(CS_entering_unit is in CS_group) Equal to False
-
-
Then - Actions
-
Custom script: if isNormalMusic(currentMusic) then
-
Custom script: set currentMusic = battleMusic[GetRandomInt(1, battleCount)]
-
Custom script: call PlayMusic(currentMusic)
-
Custom script: endif
-
-
Else - Actions
-
-
-