Script problem


(Stephan) #1

i’m using this script.

game_manager
{
	spawn
	{
	
	trigger oudsite_wall_destroyed
	{
  wm_announce "The Oudsite wall destroyed!" 

	}

	trigger allies_transmit
	{
         wm_announce "The Allies have transmitted the Marnick book!" 
  wm_setwinner 1
  wait 1500
  wm_endround
	}
}

	

marwall
{
	spawn
	{
	wait 200
	constructible_class 3
	}

	death
	{
	trigger game_manager oudsite_wall_destroyed
	}
} 

bookobj
{
        trigger stolen 
        { 
          //wm_announce "Allies have stolen the Marnick book!" 
        setstate docs_cm_marker invisible 
        } 

        trigger returned 
        { 
          //wm_announce "The axis has returned the Marnick book!" 
        setstate docs_cm_marker default 
        } 

    	trigger captured 
	{ 
      } 
}

transmitter
{
	death
	{
  trigger game_manager allies_transmit
	}
}
}

but i’m only seeing a command post at my cmdmap, and when i’m planting the bomb i get the sound “dynamite planted” but it isnt destroyed then, few days ago i builded a wall that was working, but that map is deleted. i forgotten how to fix this.

srry for my bad English :wink:


(nUllSkillZ) #2

Try this one (some brackets were wrong / inserted a wait in the “game_manager/spawn”-scriptblock):


game_manager
{
	spawn
	{
		wait 200
	}

	trigger oudsite_wall_destroyed
	{
		wm_announce "The Oudsite wall destroyed!"
	}

	trigger allies_transmit
	{
		wm_announce "The Allies have transmitted the Marnick book!"
		wm_setwinner 1
		wait 1500
		wm_endround
	}
}

marwall
{
	spawn
	{
		wait 200
		constructible_class 3
	}

	death
	{
		trigger game_manager oudsite_wall_destroyed
	}
}

bookobj
{
	trigger stolen
	{
		//wm_announce "Allies have stolen the Marnick book!"
		setstate docs_cm_marker invisible
	}

	trigger returned
	{
		//wm_announce "The axis has returned the Marnick book!"
		setstate docs_cm_marker default
	}

	trigger captured
	{
	}
}

transmitter
{
	death
	{
		trigger game_manager allies_transmit
	}
}  


(Stephan) #3

Thx i can blow the wall now :clap:


(]UBC[ McNite) #4

One thing to simplify your script: Don’t have a block in the game_manager for the wm_announce. Just put that line into the death event of the func_explosive. Saves you 1 block in game_manager and a trigger event, and you find things easily.

Scripting is all about: KISS (keep it simple stupid) or you ll run into trouble a lot.

And it is: outside (u write oudsite)


(Stephan) #5

i saw that to:P but there is no problem with that in game :cool:

I got one problem again.

The allies most win the game when the book is transmitted, i can take the book etc. but when i transmitted it the map doesnt ends the book is then gone to, how can i fix that :???:


(Stephan) #6

I tried a tutorial for RTCW but that doesn’t help :frowning:

Can someone help me out or did someone know a good ET tutorial?


(nUllSkillZ) #7

On Ifurita’s there’s a tutorial.
Unfortunately no link.


(Stephan) #8

ok i check it out thq :wink:


(nUllSkillZ) #9

Found a link and edited the post about.
Not sure if you’ve seen the link.


(Stephan) #10

Cant find the tut:S


(nUllSkillZ) #11

Making Returnable Objectives (Prefab and script)


(Stephan) #12

thank you :smiley: