Quote
Originally posted by Debra:
Thank you VERY much for letting me read your plug-in manual.
You're welcome. I hope it helps to get things to make more sense.
Quote
I think your manual is for the plug-in application, so I'll tell you what I see so that I can communicate as well as possible. I see "Project -- > Game options which is the same as the second to the right tool icon on the upper toolbar. I can name a global there , which I've done. (It is now gb_TryGlobal). I can't do anything else with global under Game options.
Yes, the "Project-->Game options" is the same as the icon on the toolbar. And this is where you define a globals existance(ie, tell Coldstone that you want to create a global named "gb_TryGlobal"). This is all that this screen is used for, but you need to do this in order to use a global.
Quote
Okay, I've gone into a create a new event. I've dragged Change Globals from the Action Lib into the Main Sequence Actions window. Another window opens. I see "Global Variable" and have highlighted gb_TryGlobal. Operator doesn't make sense to me. How can you manipulate something that hasn't been defined? Does "set" mean that you're defining the global? And what, exactly happens when you add, divide, or subtract?
When a global is first created it is defined as "null" which for most purposes is 0. If you use a conditional on this variable it will equate to 0, but if you print it then nothing will be displayed; hence "null" value.
When you use a change globals you are re-defining the value of the global. If you are using integers(numbers) then anything you add/subtract/multiply/divide/random to this variable will be done to the value "0." If you choose to set the value of the global then you will define it directly(ie, you can set it to be equal to "4" or to be equal to the string "cat").
If you define the global, and then later wish to manipulate it, you can use the change globals event object to do whatever you want to the value that is stored within it. Ie, you can "add" the value '2' to the existing value of '4' and the variable will now equate to '6.' Or you can "add" 'bert' to 'cat' and the variable will equate to 'catbert.'
Quote
Let's say that you're defining the global. If you choose "set", does that define the global, and then you again drag "Change Globals" into the window, choose the same global and then change it?
Yes. As mentioned above when you first create the global it will be given a value of null. The global variable remains null until it is modified with a change global event object. You can either define it with this, or if you wanted the global to be the integer 0 you can leave it as this until you wish to change it, and then use the change globals event object to alter the value.
Quote
The "Operator Value" also doesn't make any sense to me. How can you change something that isn't defined? I see all sorts of good things on the right when I select the arrow beside the Operator Value, but I have no clue what any of it means, or, especially, if I select it, what it does. What is a string?
Set defines the variable directly with whatever value you give it.
Add/subtract/multiply/divide are simply mathematical equations that can affect the variable by the value you supply(ie, if the global is currently 2 and you choose 'multiply' and give it a value of 3, then this will multiply the current value(2) by 3, so the global variable will now be equal to 6).
Random will set the global variable to a random integer number between 0 and the number you specify. If you specify 6, then the global variable will be set to a number between 0 and 6.
A string is text. It is a word used to differentiate between text and numbers. '4' is a number. 'four' is a string. Furthermore, '4' can be a string if you are using it as a word instead of a number.
The bottom line on strings is that if a value isn't a number, it is a string.
Quote
Does Coldstone use certain words that you're supposed to name a global in order to define its function? I guess I don't need a "for instance" as much as I need to know the steps to do this as well as clear definitions of functions. That's why the Something for Dummies is so popular.
I don't quite understand this question.
You can name a global whatever you want. It helps if you name a global based on what you intend to use it. Ie, for a global that keeps track of the player's class the name "&&gb;_Player_Class" is a good name. Much easier to glance at the global and remember what it is used for than if you had named it "&&gb;_global001"
Anything you do to modify the globals will be done with the Change Globals event object. And within this object you will select the global that you wish to modify. So its name isn't important to the code.
Also, you will reference your globals most commonly with the "conditional" event object. This is a comparison and is used to check a global variable against either a constant value(such as a player's job or race), a game variable(such as experience points or level), or another global variable that you have defined.
Quote
I'm sorry I'm so ignorant about common wording in the computer gaming field, and I truly appreciate your help. I am building a game from scratch. A decent manual would be very helpful.
No need to appologize. If anything I have mentioned above sounds odd or difficult to understand, please ask additional questions.
We'll get you up to speed, I promise!
(edit) Highlighted certain parts for easier reading (/edit)
(edit) And fixed typos. Darn typos! (/edit)
------------------
(url="http://"http://stark.evula.net/pogwalkthrough.htm")PoG Walkthrough and Compendium(/url) | (url="http://"http://stark.evula.net/plugins/dev_tools.htm")PoG Dev Tools(/url) | (url="http://"http://stark.evula.net/plugins/spells_expander.htm")Spells Expander(/url)
(url="http://"http://stark.evula.net")Stark.evula.net(/url) | (url="http://"http://www.evula.net")EVula.net(/url) | (url="http://"http://mail.ambrosiasw.com/mailman/listinfo/coldstone_dev")Coldstone-dev mailing list(/url)
(This message has been edited by Stark Bledfast (edited 10-23-2002).)
(This message has been edited by Stark Bledfast (edited 10-23-2002).)