simply use a Function to add your scripts into (instead of a Verb), as this is exactly what Functions are for !!! (a Function is perfect as a loop block)
(though it can be difficult to get it to work if you make the design complex... especially as you can only have a single 'get input' and~or 'show menu' running at a time, for obvious reasons ~ I'm still... yes still, stuck on this very issue... laughs. It's been like 3 months... I wish I get this figured out in only 8 hrs... compared to 3 entire months and still no solution figured out, lol. So keep it as simple as you can, unlike me!)
for example:
<game name="xxx">
<start type="script">
name_function
</start>
</game>
<function name="name_function">
msg ("What is your name?")
get input {
name_variable = result
msg ("So, your name is " + name_variable + ".")
show menu ("Is this indeed your name?", split ("yes;no", ";"), false) {
if (result = "yes") {
player.alias = name_variable
msg ("Alright, {player.alias}, onto my next question...")
age_function
} else if (result = "no") {
msg ("Okay, then I'll ask you again...")
name_function
}
}
}
</function>
<function name="age_function">
// blah scripts
</function>
-------------------
if you want to see some more complex usage:
(this uses the Parameters and maybe the return types ~ I'd have to re-check if I use the return types any where in my code or not ~ I can't remember)
viewtopic.php?f=18&t=4988-----------------
as for doing it in the GUI~Editor, via it's 'add a script' buttons:
create~add a Function, it's exactly like a Verb, just ignore the 'parameters add box' for now, you can leave it blank: don't add any parameters to it, and ignore the return type drop down box too for now: leave it as: [none]. Add in your scripts.
---------------
to do the looping of the Function (re-doing or doing again, the Function):
run as script -> add a~new script -> scripts -> 'call function' Script -> Name: 'whatever you want, example: name_function', Parameters: (don't add any)
or, in code, the code line for calling (looping ~ re-activating~using~doing~running the Function) a Function, is literally the 'name' of the Function, lol, for example:
name_function
age_function
race_function
race
age
class
class_function
classFunction
etc etc etc (whatever you decided to name each of your Functions as)
code is so much easier, lol. wink
---------
lastly, usually you have a Verb (or the Game Object's 'start' Script or a Command) for examples, and within the Verb (or the Game Object's 'start' Script or a Command), you add the 'call function' Script, to do the initial running of the Function (and then within the Function itself, you also have the same added 'call function' Script, to re-do or do-again, loop, the Function)this above is maybe the critical thing to understand on how to set up or use a loop~Function.
(though, you can do more complex stuff, like having one looping Function 'calling on' another looping function too, so it can get really messy~complex, if you're a bad coder, don't know good structural~organizational code designs+methods~tricks, like I am ~ like me, lol)