new to this compiling and scripting

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

new to this compiling and scripting

Post by tuffstuff7 »

hi i have map in beta form (new to this) an i wnat ot play it with my friends to see wht they think it is simple and a team deth matck , i have used mnuilder and looks playable fromthat view point ........it loaded.............anyways i knwo now i have to script ti uuuuuuugh something else to do lol
well i saw this and inserted my name of the map ....arrattack (map name )

and this is what it looks like

// arrattack
// ARCHITECTURE: tuffstuff7
// SCRIPTING: tuffstuff7
main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""

setcvar "g_scoreboardpic" "none"


level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock

level.script = maps/dm/arrattack.scr

level waittill spawn

end


is this it ?

or are there otheres to do ? plz help as i am anxious to give this a try
ty
TheStorm
Captain
Posts: 233
Joined: Mon Oct 07, 2002 7:45 am
Location: Gavle, Sweden
Contact:

Post by TheStorm »

You don't need this to play the map!! But what you wrote seems ok if you want a score board text. And you will need a scr if your map gets more complicated with scripted events and stuff.

Inside the "" in the setcvar lines you can write text that will show up on the score board in game (tab).

setcvar "g_scoreboardpic" "none" can be used if you have a picture for the score board, then replace the "none" with directions to your picture

The exec global door thing is only needed if you have set up doors in you map that should have the "locked sound"

Well then you have a simple scr for your map! As said this is not needed but at least use it to get a score board text. When your maps get more complicated and you start using locked doors, minefields, etc etc then you will have more scripting in the scr!!
TMT admin, visit www.modtheater.com
HITP Lead Mapper
Member of Electronic Arts MOHteam
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Try level.script = "blah blah blah".
Live to map, not map to live.
-mohaa_rox, .map
moderator
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

scripting

Post by tuffstuff7 »

hi storm ty for your reply
ok i have a maap builst it hs no doors ...it is a terrain map with under greound bunkers and above ground bunkers sou could u please help me as to where and what scripts i need the next one will have doors as i am working on that !
i am starting simple and working umy way up rather thatn do a full blown map and having the task ofdoing all juat my way of thinking lol
if i have trouble with the simple then i will not know how to do the tuffer ones

ty tuff
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

mohaa_rox wrote:Try level.script = "blah blah blah".
Also it is important to put this line above any others like in this example:

Code: Select all

   level waittill prespawn

   thread debugtext ">"
   thread debugtext "@@@@@@@@@@@@@@@@@@@@@@@"
   thread debugtext "      PRESPAWN !"
   thread debugtext "@@@@@@@@@@@@@@@@@@@@@@@"
   thread debugtext ">"

   //*** Precache Dm Stuff
   level.script = "maps/dm/ambient_test.scr"

   exec maps/dm/ambient_test_precache.scr
   exec global/ambient_mp.scr ambient_test
because some scripts look at this value during their execution. These here do not, but that is not the cast for all.
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

Post by tuffstuff7 »

ty inkeeper for your reply btu let me start over like i know knwthing which is true lol
i have in my mohaa map folder there files arrattck map,bsp,vis,prt,bak
now it is a terrain map and i do not know what i ma doing i set up an folder going byt this site i think surgeon posted it .....................
ok now what scripts do i need and how to go about it ????????????
it is possible to open ,lets say ..........pak.0.pk3 from moha and borrow the script lines from there and insert your maps name? if so how ? on this site is there a posting of a generic script for basic maps ?like i said this is a terrain map no doors or functioning items like mines etc
please help i feel as if i am close but yet so far
ty for your support
tuff
tuffstuff7
Captain
Posts: 265
Joined: Mon Jan 06, 2003 12:59 am
Contact:

scripting

Post by tuffstuff7 »

innkeeper i am new to this so am lost from the get go on the scripting ummm i have no idea what it is that u typed in how many sctipts are there for a basic map and where do they go? and how do i get to this IRC real time program ummm what do i needto down load to use?
Post Reply