Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 12-30-2014, 03:41 PM
Nanaki Nanaki is offline
Approved Member
 
Join Date: Mar 2010
Posts: 338
Default

Quote:
Originally Posted by nocalora29 View Post
Do you maybe know how to Save global variables?, Because I'd like to save some Numbers and or Strings that I can Read/Load trough an Systems Activate.script File.
Code:
setglobal("x", x);
the x in quotes is the variable to be saved, while the second x is the name of the variable to be saved.

You can then call those globals from any script, so long as the script does not have a defined local with the same name.

Note that Global variables should be a last resort thing, as they generally tend to eat more resources than local variables.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:17 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.