?

Log in

No account? Create an account
entries friends calendar profile Previous Previous Next Next
Why doesn't the Wizard scripting language have GOSUB and RETURN? It… - Walrus Cloudy
...now it's clear
teshiron
teshiron
Why doesn't the Wizard scripting language have GOSUB and RETURN? It would make my life soooooo much easier, instead of these endless lines of redundant repeated code.

Current Mood: bouncy bouncy

3 comments or Leave a comment
Comments
From: cathrine98 Date: May 4th, 2003 08:49 am (UTC) (Link)
I discovered a nifty little way of getting around that ;)

Simply do the following:

main:

<>
save main2
goto subroutine

main2:

<>

subroutine:

<>
go %s

~~~~~~~~~~~~

%s is whatever we saved earlier with the line "save main2" you can use this variable for saving goto names as kind of a goto return thing :)

If ya have any questions IM me at HR Jocelyn...I'd be happy to answer them for you
From: cathrine98 Date: May 4th, 2003 08:50 am (UTC) (Link)
eww it cut out my little thingys...the <> is supposed to be ::insert main stuff here::, ::continue main stuff here::, and ::insert subroutine stuff here::

:D
teshiron From: teshiron Date: May 4th, 2003 07:34 pm (UTC) (Link)

Re:

The problem is, I already use the %s variable for keeping track of which MATCH loop the script is currently processing, and then use it as sort of a RETURN already. I want to call a sub from the sub that's called from the match loop (if that makes any sense.) I guess I want nested GOSUBS.
3 comments or Leave a comment