Difference between revisions of "Call"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(No difference)

Revision as of 12:49, 24 March 2011

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