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();
- int sa[] = "Init Var a: ";
- int sb[] = "OnContinue var b: ";
- int sc[]= "OnExit var c: ";
- while(true){
- if ( Link->PressEx1 ) {
- TraceS(sa); Trace(a);
- TraceS(sb); Trace(b);
- TraceS(sc); Trace(c);
- }
- Waitdraw(); Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement