If you want to learn how to script look at the tutorial map, mods like savage Survival, HvL, Eldarax and read eaxs great documentation (www.s2howto.com
) and google sometimes for names maybe you find a thread.
There are console commands, proximity Triggers, World Scripts which are automacly called when something happened (e. g. a player joins). With ScriptgetParam(nameOfParam) you can get a param which a script gets (e.g. player joins get automaticly the clientId of the joined player which is very important, in this case ScriptgetParam(clientid)). Scripts can call other scripts. There are no normall brackets and loops you have to use gotos instead.
Important to know is:
CreateVar int firstVar 1
CreateVar int secondVar #firstVar# //## means the string enclosed by the # symbols is a varname not a string or entity name or something
CreateVar int thirdVar [secondVar+1] // brackets [ or surrounding multiple operations
CreateVar int secondVar #GetPosX(|#idOfSomething|#)# // he we need escpaed brackets or the interpreter would see this.
#GetPosX(# <- VarName or Funktioname
idOfSomething <- random String
#)# <- VarName
// you escape # symbols with a | before them so # -> |#
Some functions expect types
Like if[Var == 1]
without # symbols, because the expect vars.
Other expect value
set Var 1
set Var Value
so its not: set Var Var2 <- var2 is a variable
set Var #Var2# <- #Var2# is the value of the variable
I love VOIP
sing: "base, base, base, base, base, base, base"
Why only 15 year old girls? Since 4 Years, damn I'm doing something wrong...
One day I will find out who is responsible for the K2 scripting "language" and the modding "support". And then...