script


(rbh) #1

ok i have a working game manager script for the dyno gate but i also need to do a obj script

(i have already placed the obj on map and it works when you pick it up but not when you take the obj to drop of point :ie it wont end map)

do i combine the 2 scripts into one game manager script or can i have 2 game manager scripts


(DerSaidin) #2

Script for entities doesn’t go in the gamemanager block. Stuff like a dyno gate would be outsite it (although it might trigger something else in the gamemanager).

You never have 2 gamemanagers

Just have a look through other scripts. If your after an objective, try radar’s script.


(rbh) #3

ok i have dyno working but i get a line 21 script error when trying to load map now i know its a script error but i dont know enogh about scripting to sort it HELP

you fight your way to gate and dyno it then steal obj and return it to the truck

before i tryed to combine the scripts

the dyno gate worked
the obj partly works it lets you steal obj and annonces it but when you drop it off at truck it takes it but nothing happens(no announcement no end map) (not sure if it never ended because it was tested in sv_pure / devmap)

after i combined the scripts i get the line 21 error when i try to load (sv_pure o /devmap)

game_manager
{
spawn
{
}
}

t1 <<<<Mapname
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce “Allies have destroyed the Gate!”
}
}

//Gold axis__gold
{
spawn
{
wait 200
setstate axis__gold_captured invisible
}

trigger stolen
{
wm_announce 0 “Return the axis gold to the getaway truck”
wm_announce 1 “The Allies have stolen the Axis gold”
setstate axis_gold_cm_marker invisible
}

trigger returned
{
wm_announce 0 “The Axis have retrieved the gold”
wm_announce 1 “Gold returned! Protect the gold”
setstate axis_gold_cm_marker default
}

trigger captured
{
wm_announce “The Allies have secured the Axis gold”
setstate axis_gold_red invisible
setstate axis_gold_captured default
}
}

axis_objectives //enter this as the scriptname value for the single trigger_flagonly_multiples entity
{
death
{
trigger game_manager obj1
}
}


(-SSF-Sage) #4

There! Scriptname missing, cos there’s // Yeah. When you get these type of errors, watch for these kind of things. Missing { or } or too much of them or missing name etc.

//Gold axis__gold   HHHHHHHHEEEEEEEEERRRRRRRRREEEEEEEEEEE
{
spawn
{
wait 200
setstate axis__gold_captured invisible
}

trigger stolen
{
wm_announce 0 "Return the axis gold to the getaway truck"
wm_announce 1 "The Allies have stolen the Axis gold"
setstate axis_gold_cm_marker invisible
}


trigger returned
{
wm_announce 0 "The Axis have retrieved the gold"
wm_announce 1 "Gold returned! Protect the gold"
setstate axis_gold_cm_marker default
}

trigger captured
{
wm_announce "The Allies have secured the Axis gold"
setstate axis_gold_red invisible
setstate axis_gold_captured default
}
}

Also this isn’t ok so need to add // there. And why have you remind your self of giving explosive scriptname your map’s name or what’s that? :smiley:

t1 //<<<<Mapname       HHHEEEERRREEEEEEE
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "Allies have destroyed the Gate!"
}
} 

Edit. Edited. :lol:


(rbh) #5

ok i set script name now i get error

trigger_objective_info has a missing "Allies_Truck_cm_marker


(rbh) #6

that <<<<mapname was so who ever looked at the script knew i was calling map t1 at present


(rbh) #7

here is perfab and tutorial i used

http://4newbies.planetwolfenstein.gamespy.com/objective.php

i changed it fron axis stealing gold to allies stealing gold

guess i messed up somewhere


(rbh) #8

ok i deleted it all and re imorted the prefab and put script back to what it was but i still get the missing allies cm marker error