Jump to content

About aliasing scripting


680iba1

Recommended Posts

I am trying to learn scripting, and after studying regular scripting I am getting a basic understanding of it. But I have run across some aliasing scripting that I am unable to figure out, and wanted to see if anyone knows what these abbreviations mean?

 

short dist

short pov

short gat

short gaz

short gam

 

I know the term "short" declares a new variable, but I'm not familiar enough with the abbreviations.

Thanks for any help, or insight on this.

Link to comment
Share on other sites

Your right, short does signify a new variable, but there are no specific variables until they're made. What I mean is, saying "short dist" at the start of a script adds a new variable (one which can't be a decimal. It would have to be "float" instead of "short" for that), "dist", within the script. This variable can be set or changed, but they always start as nothing until they are set to something. Really, the only thing separating one variable from another is the name; they're all just variables named however the author wants (usually for their purpose within the script. "dist" was most likely used for something involving distance).
Link to comment
Share on other sites

The typically abbreviations don't matter outside the script. "Short dist" could also be "short h159" as long as the defining statment of "h159" is also valid for whatever you were using "dist" for. People can call variables whatever they want as long as it isn't the same name as a global or reference. The important part is for the scripter to know what the use of that variable is. I often use just a simple "Var1" and "Var2" within most of my scripts just so that as I'm making the script I can declare something quickly without having to spend time figuring out what I want to call it. Sometimes I go back and change it, sometimes I don't. It really doesn't matter what you call it, it's still just a variable you can use within that script.
Link to comment
Share on other sites

Thanks guys for the info! So like for example I wanted to do a quest with five possible outcomes depending on how you answered an npc questions you'd have five variables in your script?

 

So it would start out like this:?

 

scn myquestscript

 

short var1

short var2

short var3

short var4

short var5

 

begin onload

 

with like by answering question var1 is starts quest A, and so forth?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...