game_manager 
{ 
   spawn 
   { 
      wm_axis_respawntime 1
      wm_allied_respawntime 1 
      wm_set_round_timelimit 60
      wm_number_of_objectives 1
      wm_setwinner -1 
	  wait 100
	  setautospawn "Axis Default" 0 //axis
	  setautospawn "Allies Default" 1 //allies
   } 
} 


//buttons

thebutton1 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton1 dosomething1 
    }
    
    trigger dosomething1 {        
	trigger thebutton1 laddervis
	trigger thebutton1 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass1 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass1 invisible
	accum 0 set 1
	resetscript
    }
   
}

//

thebutton2 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton2 dosomething2 
    }
    
    trigger dosomething2 {        
	trigger thebutton2 laddervis
	trigger thebutton2 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass2 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass2 invisible
	accum 0 set 1
	resetscript
    }
   
}

//

thebutton3 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton3 dosomething3 
    }
    
    trigger dosomething3 {        
	trigger thebutton3 laddervis
	trigger thebutton3 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass3 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass3 invisible
	accum 0 set 1
	resetscript
    }
   
}

//

thebutton4 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton4 dosomething4 
    }
    
    trigger dosomething4 {        
	trigger thebutton4 laddervis
	trigger thebutton4 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass4 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass4 invisible
	accum 0 set 1
	resetscript
    }
   
}

//

thebutton6 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton6 dosomething6 
    }
    
    trigger dosomething6 {        
	trigger thebutton6 laddervis
	trigger thebutton6 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass6 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass6 invisible
	accum 0 set 1
	resetscript
    }
   
}

//

thebutton7 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton7 dosomething7 
    }
    
    trigger dosomething7 {        
	trigger thebutton7 laddervis
	trigger thebutton7 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass7 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass7 invisible
	accum 0 set 1
	resetscript
    }

}

//
thebutton8 {
	
    spawn {
	accum 0 set 0
	wait 500
	trigger thebutton8 dosomething8 
    }
    
    trigger dosomething8 {        
	trigger thebutton8 laddervis
	trigger thebutton8 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass8 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass8 invisible
	accum 0 set 1
	resetscript
    }

}
//

thebutton1337 {
	
    spawn {
	accum 0 set 1
	wait 500
	trigger thebutton1337 dosomething1337 
    }
    
    trigger dosomething1337 {        
	trigger thebutton1337 laddervis
	trigger thebutton1337 ladderinvis
    }

    trigger laddervis {
	accum 0 abort_if_not_equal 1
	setstate buttonglass1337 default
	accum 0 set 0
	resetscript
    }

    trigger ladderinvis {
	accum 0 abort_if_not_equal 0
	setstate buttonglass1337 invisible
	accum 0 set 1
	resetscript
    }

}
//


