Monstercat
Well-known member
- Joined
- Feb 26, 2013
- Messages
- 281
- Reaction score
- 6
I was bored, so I've made this 7HPTimeout.cs
If your health drops below "8" your game will be Closed.
Type "HP" to Activate/Deactivate
Source:
If your health drops below "8" your game will be Closed.
Type "HP" to Activate/Deactivate
Source:
Code:
{$CLEO .cs}
0000:
0@ = 0
WHILE TRUE
WAIT 0
if or
0ADC: TYPING "HP"
0AB0: 88
then
if
0@ == 0
then
0@ = 1
018C: play_sound 1083 at 0.0 0.0 0.0
0ACD: show_text_highpriority "7HPTimeout.cs ~G~Enabled" time 1337
else
0@ = 0
018C: play_sound 1084 at 0.0 0.0 0.0
0ACD: show_text_highpriority "7HPTimeout.cs ~R~Disabled" time 1337
end
WAIT 350
end
if
0@ == 1
then
0226: 1@ = actor $PLAYER_ACTOR health
if
1@ < 8
then
0AA5: call 0x823BDB Shutdown_a_game num_params 3 pop 3 0 0 0
0AA5: call 0x82499B Shutdown_a_game num_params 3 pop 3 0 0 0
end
end
END