2008-11-07 13:14:46 +00:00
|
|
|
// A sample class
|
2009-01-14 20:51:17 +00:00
|
|
|
class Test;
|
|
|
|
|
|
|
|
import io, timer;
|
2008-11-07 13:14:46 +00:00
|
|
|
|
|
|
|
test()
|
|
|
|
{
|
|
|
|
state = printMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
state printMessage
|
|
|
|
{
|
|
|
|
// This state code will run as long as the object is in this state.
|
|
|
|
begin:
|
2008-12-30 02:53:32 +00:00
|
|
|
sleep(6);
|
2008-11-14 23:02:24 +00:00
|
|
|
|
|
|
|
loop:
|
2008-11-07 13:14:46 +00:00
|
|
|
print("Howdy from the world of Monster scripts!");
|
|
|
|
print("This script is located in mscripts/test.mn. Check it out!");
|
2008-11-14 23:02:24 +00:00
|
|
|
sleep(60);
|
|
|
|
goto loop;
|
2008-11-07 13:14:46 +00:00
|
|
|
}
|