i´m a sphere scripter, and in sphere we have a key to stop the comand, that's
return 1
Example!
if uo.getGlobal("Modobatalha") == "0" then
UO.SetGlobal("Falando",UO.GetGlobal("Falando")+"p")
# here i need to but the key to stop de macro, to it doesn't go to the other part
endif
uo.say("Calminha")
I can do this way to:
if uo.getGlobal("Modobatalha") == "1" then
UO.SetGlobal("Falando",UO.GetGlobal("Falando")+"p")
else
uo.say("Calminha")
end if
I kown!
But i want to know that comand, some one here can tell me ?
tks
Easy question ! English
Moderators: Murderator+, Murderator
-
- Junior Expert
- Posts: 3221
- Joined: 2004-06-24 22:08:56
return - this command return value from frunction to function that calls the function, if function that calls the function not exists, then macro will stopped.
e.g.
Sorry for my very clumsy English;
e.g.
Code: Select all
sub MySub()
var a = MyOtherSub() ; run function
return ; end macro
endsub
sub MyOtherSub()
return true ; return true to function that calls the function
endsub
Sorry for my very clumsy English;