Easy question ! English

Ask for help

Moderators: Murderator+, Murderator

Post Reply
-=SaCi=-
Posts: 14
Joined: 2006-02-01 19:58:29

Easy question ! English

Post by -=SaCi=- »

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
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

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.

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;
-=SaCi=-
Posts: 14
Joined: 2006-02-01 19:58:29

Post by -=SaCi=- »

tks Destruction
was this that i wanted to know
Post Reply