HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game Trigger Help

01-04-2005, 10:38 PM#1
paperclip
Okay, i'm having a hard time doing the defeat trigger for my game. The basic idea is to have it so that if a player loses his castles then all his units will be removed and he will be defeated. Problem is that i can't find a other than to make it a periodic time of 2.00 secs. to test the triggers. The bad thing with that is when he is registered as defeated the message sent to all the players like "Player 2 defeated" keeps recuring/popping up every two secs.

If you need a visual then here is one of the triggers so i don't have to right it down. So lazy lol....



Okay, so you see i don't have a complex set up witht he losing side of it, but it still doesn't seem to work.


I have another problem also with my game. I can't get the "if a player leaves" triggers to work also. It doesn't remove the castles when they leave so it doesn't register that player has left meaning that you still have to destroy his casltes to get the victory triggers to work properly. Here is a pic. of the Player Leaves Triggers.



So thanks for helping me out if you can. If you get confused just ask i'll go into more detail for you.
01-04-2005, 11:43 PM#2
duckduck
#1: you can use this trigger for the top problem
Code:
Events:
  A unit dies
Conditions:
  number of units in human castle = 0
Actions:
  Defeat for player 1
and if u didnt add all the casltes into the unit group, it wont work
#2: try this:
Code:
Events:
  Player 1 leaves
Conditions
Actions:
  yadadadadada
note: u dont need the if,than,else because the even will b run wen player 1 leaves, you dont need an if,then,else statment