Unknown action


(Qimen) #1

Hi

I am new at mapping but i tried to do the Documents mission at Surface. But when I start my map in ET I got “G_scriptPars(), Error (line 41): unknown action: wm_mapdescription”. Whats is wrong? I tried with this script file.

// wall 1
axis_wall_0
{ 
spawn 
{ 
wait 200 
constructible_class 3
constructible_health 300 

setstate axis_wall_0 default 
} 
death 
{ 
setstate axis_wall_0 invisible 
} 
}

// wall 2
axis_wall_1
{ 
spawn 
{ 
wait 200 
constructible_class 3
constructible_health 300 

setstate axis_wall_1 default 
} 
death 
{ 
setstate axis_wall_1 invisible 
} 
}

// The mission
game_manager
{
spawn
{
// Set scenario information

wm_mapdescription "get the secret documents and transmit them!"

wm_axis_respawntime 15
wm_allied_respawntime 15
wm_number_of_objectives 2
wm_set_round_timelimit 30


//we have 2 objectives, taking the documents and transmitting them:
wm_set_objective_status 1 0
wm_set_objective_status 2 0


wm_set_defending_team 0
wm_setwinner 0

accum 1 set 0
accum 2 set 0
}


trigger objective1
{
wm_set_objective_status 2 1 
accum 2 set 1
wm_announce "Axis team has transmitted the documents!"
trigger game_manager checkgame
}

trigger axis_object_stolen
{
wm_set_objective_status 1 1
}

trigger axis_object_returned
{
wm_set_objective_status 1 0
}


trigger checkgame
{ 
accum 2 abort_if_not_equal 1
wm_setwinner 1
wait 1500
wm_endround
}
}


transmitter_obj
{
spawn
{
}
death
{
trigger game_manager objective1
}
}

I want Axis to get the documents, I have placed all the things I should (I think).


(chavo_one) #2

You are applying a RtCW scripting tutorial to ET, and that just won’t work. The biggest difference between ET and RtCW lies in the scripting system.

The map and objective description stuff now lives in the .objdata file. Look at the official map scripts for examples on where this stuff goes for ET.


(Qimen) #3

oh… Is it complicated to do this mission in ET? :frowning:


(chavo_one) #4

No more complicated than in RtCW, just different. And since there are no tutorials for ET scripting yet, you will have to use existing maps as a source of knowledge.


(Qimen) #5

ok, thanks.


(SoulRebel) #6

hi!

are there scripting tutorials for et evailable, NOW?

i have the same problem… my objectives wont work!