Posted 16 December 2012 - 06:45 AM
So I am writing a little text rpg and I need to know how to call another function or restart the function I am in.
Thanks in advance.
Thanks in advance.
function getName()
write("Name please? ")
name = read
print("Your name is ".. name"?")
write("y/n?")
check = read
if check == "y" then
print("Good, Let's move on!")
-- i want to move to the next function
else print("Oh? Try again!")
--restart the function