- Joined
- Nov 26, 2006
- Messages
- 11,136
Okay. In my campaign, there is a part where the main character has to practice the piano. How it works is that you click (select) the piano key, and then it plays its attack anim (being pressed), and the sound plays. This all works fine, but if you click the same key twice in rapid succession (less then 1/4 of a second in between), then it causes the game to freeze. (If the key is pressed within about 1/2 of a second in between clicks, then it works fine) The music keeps playing, but the map freezes, and sometimes I can manage to Alt+Tab out and then Ctrl+Alt+Del WC3, but other times even that is not possible.
-
Piano Play
-
Events
- Player - Player 1 (Red) Selects a unit
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Piano Key (Backwards L)
- (Unit-type of (Triggering unit)) Equal to Piano Key (L)
- (Unit-type of (Triggering unit)) Equal to Piano Key (Rectangle)
- (Unit-type of (Triggering unit)) Equal to Piano Key (T)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Trigger - Turn off (This trigger)
- Set AA_PianoKey = (Triggering unit)
- Selection - Clear selection
- Selection - Select Yellow Dragon (piano) 0140 <gen> for Player 1 (Red)
- Animation - Play (Triggering unit)'s attack animation
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering unit) Equal to Piano Key (L) 0105 <gen>
-
Then - Actions
- Sound - Play Low C <gen>
- Else - Actions
-
If - Conditions
- Etc...
- Trigger - Turn on (This trigger)
-
Events