Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
/// Sets a comment for the event
That way it'll reset itself each time the alarm fires.
Otherwise, like others have stated, just reset your alarm in the alarm event itself; setting an alarm value anywhere else totally resets the countdown (which in the event your if statement is working, might be resetting the alarm value before the actual alarm event is ever fired, thus preventing GM's internal checks from ever determining the alarm to be set off.)
As such, adjusting an alarm during the wrong phase won't work at all.
As an aside: You can always draw_text(x,y-8,string(alarm[0]) or something... to moniter your alarm status
{
alarm[1] = 30
}
This code is saying that as soon as the alarm goes off, set it back to 30. This will work, but you will have to put it AFTER all the other events in the alarm code. what you want to do is reset it after it is done. when the alarm finishes all the code in the event, the alarm is then set to -1. So to reset the alarm, you write;
i alarm[1] = -1
{
alarm[1] = 30;
}
or
if alarm[1] <= 0
{
alarm[1] = 30;
}
Thank you everyone
The alarm moniter works, it stays on -1 all the time
-1 means the alarm is completely off.