Shadowblitz16 wrote:@Lx Xzit
The help document on scripts seem very simple
they don't tell you the arguments for the variables and function and some don't even go into depth on what they do
also I have posted help topics but nobody seems to reply to them
Variables are numbers that can be used in math.You can have global ones,that work for all levels and local ones that work on a particular level Only.they can be used in many porpuouses,mostly used for coins in shop,and to make one level Interact with Another.s for basic scripting,you need
If =that starts a condition
Then= the action it will do if "if" rettorned as "True"
Call =what will the script do
Else =if the ''if" has rettorned as "false"
End if =to end the script.
Using variables on scripts
Val(name of variable) is local ones
Gval(name of variable) is global ones
To use them vou use Plus(+) minus(-) times(*) and divided(/),higher than(>),lower than(<) and equal(=)
That's just the basic.Hope you understend.
Example:
- Spoiler
- if gval(phrase)=>9,
Then call SHOWMSG("TEST 1")
Else
Call SHOWMSG("test 2")
On that one,if global variable is equal or bigger than 9,test1 message appear.if not,test2 appear as message.as you see,SHOWMSG make a message appear,place the message on its front beetween ("").