HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Questions

10-22-2002, 09:38 PM#1
Nogumari
I am almost medium with triggers!(-_-)

What is the point of variables, what do they do, and when and where should they be used?

Also, how do you make it so if you press Esc it does an action, like in Zelda-Open RPG Item Cache?


thnx!
10-22-2002, 10:41 PM#2
Deicide
You don't know much about programming, do you?

Variables are "memory spaces" that stores data. Everytime you must "remember something for later use", you store it in a variable.

For example, let's imagine you will create 3 different units and then make them fight.

None of the units is preplaced, all of them were created through triggers.

You would not be able to use "Last created unit", as it would only affect the last unit to be created, but not the first or the second.

So, you just make 3 Unit Variables (or an Array of Unit Variable).

Every time you create one of the units, you just store it within a Variable using

Set <Variable> = Last Created Unit

Then, everytime you are refering to that unit, you just need to use the variable.
10-23-2002, 10:56 PM#3
Draco
For player pushed the 'escape' button, use...

Event - Player Skips a Cinematic Sequence