right now i have it set up so that if they successfully create a magical tool, this timer starts up. but it doesnt work =\ it compiles fine but completely skips the program and doesnt start the timer
(this is glowtimer.src)
Code: Select all
include ":glowies:glowies";
program glowtimer (character)
glowiestimer(character);
endprogram
function glowiestimer(character)
SendSysMessage(character, "The glowtimer has started");
repeat
sleep (1);
glow_timer := glow_timer + 1;
until (glow_timer == glow_timer + 86400);
SendSysMessage(character, "the glow_timer is now at 1 day");
if (glow_timer := glow_timer + 86400)
glow_timer := ReadGameClock();
endif
SendSysMessage(character, "the glow_timer is now restarted");
endfunction
i would then like to make an if statement at the very start of the function that created the magical item, to....well for example
Code: Select all
if (glow_timer == 1 day)
return;
endif
if you need more info about what im trying to do, just ask
thanks in advance, mat