Page 1 of 1

Scripting

Posted: Wed Feb 05, 2003 2:49 am
by Carbonated Weasel
in a map do you need to have some sort of scripting in it? just wondering.

Posted: Wed Feb 05, 2003 6:30 am
by mohaa_rox
Of course you need a script! As you read your tuts, you collect advanced script and put 'em together, then you'll have a script.

Posted: Wed Feb 05, 2003 1:36 pm
by Innkeeper
Well rox, that's not completely true. YES, you can run a map without any script at all.

Scripts are used to control various aspects of the game. Even if it is as simple as just adding text for the scoreboard. A very basic deathmatch script generally does little else other than add text to the scoreboard and setup a few parameters if the game is round based. To get your map to have more functionality, such as rain, ambient sounds, or bots just to name a few, additional scripting is required.

...

Posted: Fri Feb 07, 2003 4:02 pm
by Carbonated Weasel
thanks innkeeper :)

Posted: Sat Feb 08, 2003 3:24 am
by mohaa_rox
Yes, in MP, not necessarily you need a script, but a script can use ambient sounds, rain, exploders like InnKeeper said. But in SP, you definetly need a script.

Posted: Sat Feb 08, 2003 8:52 pm
by Gen Cobra
Ai scripting is strange to me. I may not be a C+ guru but i know what scripting is. I guess i just don't understand where all the scripts go when i'm done writing them. Do they ALL have to be located in the maps scr packed in the map's pk3? And can I have just preset ai so i don't have to script them?

Posted: Sun Feb 09, 2003 8:15 am
by mohaa_rox
They have to be where your maps are, e.g mohaa\main\maps with your bsp, vis, min, prt blahblah and .scr

Posted: Mon Feb 10, 2003 10:24 am
by Gen Cobra
No really. Spell it in STUPID fo rme as i am thick. Do i put the the scripts into my maps main scr? I can't get my ai to work because i don't get where to put the scripts. I just want some basic bad guys to kill. Someone spell it in dumb for me. :shock:

Posted: Mon Feb 10, 2003 10:38 am
by mohaa_rox
Try to give your map name a test_xxx and put your .scr with your .bsp in your mohaa\main\maps folder for an SP.