Page 2 of 3

Posted: Tue Jun 10, 2003 12:25 pm
by Bjarne BZR
Never thougt of that... I'll fix that in a jiffy.

Posted: Tue Jun 10, 2003 2:03 pm
by FforrestGump
good stuff :))


thanks

Fforrest 8)

Posted: Tue Jun 10, 2003 11:36 pm
by Bjarne BZR
Now there is a link at the top/start of the tutorial that allows you to transfer the complete tutorial and appendixes and images in a ZIP file to your local disk.

Its a quick coversion so feel fre to point out any errors in the docs ( bad links and missing pictures and stuff like that )

Posted: Fri Jun 20, 2003 7:53 pm
by lefty35
I needed this tutorial. I've also noticed that it's set up similarly to php. :)

Posted: Sun Jun 22, 2003 12:07 am
by Jagdtiger
Good jod on the tutorial! :wink: However, you might want to include an "example script" and show where each part of your tutorial fits into it, for people like me who are clueless :? when it come to scripting. Lastly, a list of all the exec global commands and what they do would be most helpful(PLEASE :?: :D :D :D ).

Posted: Tue Jun 24, 2003 12:40 pm
by Bjarne BZR
Not ignoring U
On vacation
Back in a week
:)

Posted: Tue Jun 24, 2003 12:56 pm
by mohaa_rox
Bjarne BZR wrote:Not ignoring U
On vacation
Back in a week
:)
lucky u

Posted: Mon Jun 30, 2003 5:43 pm
by Bjarne BZR
Jagdtiger wrote:However, you might want to include an "example script" and show where each part of your tutorial fits into it, for people like me who are clueless :? when it come to scripting.
...there ARE examples... what more exactly do you need exemplified? Be specific please.
Jagdtiger wrote:Lastly, a list of all the exec global commands and what they do would be most helpful(PLEASE :?: :D :D :D ).
Not really shure what you mean by this :oops:
Do you mean like exec global/DMprecache.scr?
You can execute ANY script like this... thake a look in the standard *.pk3 files to see all the shipped scripts.

But I guess you want to know what it DOES, right? Well... learn the scripting language and you will be able to read what they do for your self... :wink:

Posted: Wed Jul 16, 2003 3:15 am
by Sonsai
Just started scripting today, so basically almost everything is variables, and the variables actions? I dind't get that far, I guess there's more to know

Last years math helped a lot, expressions, variables, equations, etc. etc. See kids, Stay in school!

Posted: Thu Jul 17, 2003 7:51 am
by w0lv3
no i want to quit school and script professionaly :lol:

Posted: Thu Jul 17, 2003 9:31 pm
by Alcoholic
if you need help sonsai i can help you. :D

Posted: Thu Oct 16, 2003 8:44 pm
by Mainframe
i just pm someone to help me get a link in scripting .... and i saw this hehehe this is sick .... wut books would you's recommend for this scripting stuff ... i took q basic.v6 years ago :( a few weeks of understanding the basics ill be all good i tink :shock: .... so much to learn no time to :(

Posted: Tue Feb 24, 2004 2:56 pm
by chris_in_cali
Ok, you lost me with array examples right here:

local.n[variableOne][variableTwo][5] = 23
local.a = local.n[variableOne]
local.b = local.a[variableTwo]
println local.b[5] // prints 23

I don't quite understand the function here. Are the second and third lines defining variableOne and variableTwo, or are they referencing them within local.n ? I also can't wrap around my head why println local.b[5] would display 23 unless the previous two lines are something like if statements... actually, I just don't know what's going on there. yeah...

Posted: Tue Feb 24, 2004 6:44 pm
by Bjarne BZR
chris_in_cali wrote:Ok, you lost me with array examples right here:

local.n[variableOne][variableTwo][5] = 23
local.a = local.n[variableOne]
local.b = local.a[variableTwo]
println local.b[5] // prints 23

I don't quite understand the function here. Are the second and third lines defining variableOne and variableTwo, or are they referencing them within local.n ? I also can't wrap around my head why println local.b[5] would display 23 unless the previous two lines are something like if statements... actually, I just don't know what's going on there. yeah...
This is a hairy example... and if someone would actually use code like tis in a script, they have probably just learned scripting and are showing off....

Here is what happens:

saying local.n[3][1][7] = 35 is saying local.n is an array, give me the variable at index 3
The variable at index 3 is also an array, give me the variable at index 1
The variable at index 1 is also an array, give me the variable at index 7
Set the variable at index 7 to the value 35

In the example above this is done in separate steps:

// Get way in there and set the variable to 23
local.n[variableOne][variableTwo][5] = 23
// Get one step in, and save the variable at index variableOne in local.a...
local.a = local.n[variableOne]
// Get one step in, and save the variable at index variableTwoin local.b...
local.b = local.a[variableTwo]
// Get one step in, and get the variable at index 5, and send it as a parameter to the println command.
println local.b[5]

A smarter and faster way to print it would be:

println local.n[variableOne][variableTwo][5]

Any clearer? If not, don't worry. Extreme arrays like this is seldom used... the only practical use of an array like this that I could imagine would be to store objects sorted in 3D space... but it would be a bad way to store them in most cases as it would use a very large piece of the memory...

Posted: Tue Jul 17, 2007 8:02 pm
by Tazz
I get page not found now......has it been moved or something?