Yoko

All sides of Injection
It is currently 2025-12-20 09:56:50

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Easy question ! English
PostPosted: 2006-02-16 14:02:45 
Offline

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


Top
   
 Post subject:
PostPosted: 2006-02-16 16:44:54 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
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:
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;


Top
   
 Post subject:
PostPosted: 2006-02-16 18:03:09 
Offline

Joined: 2006-02-01 19:58:29
Posts: 14
tks Destruction
was this that i wanted to know


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited