Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import "std.zh"
- int a;
- int b;
- int c;
- global script Init{
- void run(){
- a = 1;
- }
- }
- global script OnContinue{
- void run(){
- a++;
- b++;
- }
- }
- global script OnExit{
- void run(){
- a--;
- c++;
- }
- }
- global script active{
- void run(){
- ClearTrace();
- TraceNL();
- while(true){
- if ( Game->KeyPress[KEY_I] ) {
- TraceS("Init Var a: "); Trace(a);
- TraceS("OnContinue var b: "); Trace(b);
- TraceS("OnExit var c: "); Trace(c);
- }
- Waitdraw(); Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement