Call

From Unofficial QEdit Wiki Guide
Revision as of 12:01, 25 March 2011 by Tofuman (Talk | contribs)

Jump to: navigation, search

Syntax

Syntax: call Function

  • Function = Function number to call up

Use

Used to call a function and then return to the function that called it.

Example


100:     call 101 //Call function 101
         window_msg 'Okay. I've waited 1 second. Now what?'
         winend 
         ret 
101:     call 102 //Call function 102
         call 102 //Call function 102
         call 102 //Call function 102
         call 102 //Call function 102
         call 102 //Call function 102
         call 102 //Call function 102
         ret 
102:     sync //Pause for 1 frame
         sync //Pause for 1 frame
         sync //Pause for 1 frame
         sync //Pause for 1 frame
         sync //Pause for 1 frame
         ret 

Related

ret, sync, window_msg, winend