| 07-20-2003, 07:51 AM | #1 |
My trigger problem is weird, before it used to work, now it doesnt may be a folly I made in a trigger....A folly im not catching on to First of all lemme lay out the situation First I have a trigger, this trigger is the basic test trigger to see if each mini-game triggers ultimately work (so I can move on to the next) Test Trigger Events Time - Elapsed game time is 5.00 seconds Conditions Actions Trigger - Run Peon Initialization <gen> (ignoring conditions) The mini-game trigger being set (Peon Initialization <gen>) is the one which leads to the trigger Im having trouble with Now once that trigger is up after 5 seconds this trigger will run Peon Initialization Events Conditions Actions Sound - Play QuestNew <gen> Game - Set the time of day to 12.00 For each (Integer A) from 1 to 8, do (If (((Player((Integer A))) slot status) Equal to Is playing) then do (Unit - Create 1 Peon for (Player((Integer A))) at (Random point in Region 008 <gen>) facing Default building facing degrees) else do (Do nothing)) Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of Region 008 <gen>) over 0.00 seconds) Player Group - Pick every player in (All players) and do (Camera - Set the camera bounds for (Picked player) to Region 008 <gen>) Game - Display to (All players) the text: |c00ffcc00Peon Pand... Trigger - Turn on Demolisher Fire <gen> Trigger - Turn on Peon Death <gen> Trigger - Turn on Peon AI <gen> Wait 8.00 seconds Trigger - Turn on Demolisher Spawn <gen> Alright this trigger see here is the basic trigger that starts up the environment setting of the picked mini game (if it was to be picked by my random variable trigger) for example the time setting and the creation of the peons the players will be focused on etc. And as you see it also turns on the triggers that accompany the flow of the mini-game This is the Peon Death trigger Peon Death Events Unit - A unit owned by Player 1 (Red) Dies Unit - A unit owned by Player 2 (Blue) Dies Unit - A unit owned by Player 3 (Teal) Dies Unit - A unit owned by Player 4 (Purple) Dies Unit - A unit owned by Player 5 (Yellow) Dies Unit - A unit owned by Player 6 (Orange) Dies Unit - A unit owned by Player 7 (Green) Dies Unit - A unit owned by Player 8 (Pink) Dies Conditions (Number of units in (Units in Region 008 <gen> matching (((Matching unit) is alive) Equal to True))) Less than or equal to 1 Actions Trigger - Turn off Demolisher Fire <gen> Trigger - Turn off Demolisher Spawn <gen> Trigger - Turn off (This trigger) Trigger - Turn off Peon AI <gen> If ((Number of units in (Units in Region 008 <gen> matching (((Matching unit) is alive) Equal to True))) Equal to 1) then do (Unit Group - Pick every unit in (Units in Region 008 <gen> matching (((Matching unit) is alive) Equal to True)) and do (Set Player_Winner = (Owner of (Picked unit)))) else do (Do nothing) If ((Number of units in (Units in Region 008 <gen> matching (((Matching unit) is alive) Equal to True))) Equal to 1) then do (Trigger - Run Win <gen> (ignoring conditions)) else do (Trigger - Run Draw <gen> (ignoring conditions)) This trigger runs the win conditions and turns the other triggers of this mini-game off so their no longer active, this isnt a problem yet since my main problem now is not in this trigger so dont bother with this. (I put this trigger here just in case this is what is causing my problem) The Peon AI trigger is this Peon AI Events Time - Every 4.50 seconds of game time Conditions Actions For each (Integer A) from 1 to 8, do (If (((Player((Integer A))) controller) Equal to Computer) then do (Unit Group - Pick every unit in (Units owned by (Player((Integer A)))) and do (Unit - Order (Picked unit) to Move To (Random point in Region 008 <gen>))) else do (Do nothing)) This trigger was given to me by TheZizz himself, but he is gone out to vacation and wont able to answer my question about this trigger. My main problem isnt this trigger, but if anyone can please tell me what this trigger is meant to do, I would greatly appreciate it since I dont understand what its need for the mini-games is for This next trigger is my MAIN problem, its the Demolisher Spawn trigger Demolisher Spawn Events Time - Every (Random real number between 12.00 and 14.00) seconds of game time Conditions (Number of units in (Units owned by Player 12 (Brown))) Less than 30 Actions Player - Set the current research level of Burning Oil to 1 for Player 12 (Brown) Unit - Create 1 Demolisher for Player 12 (Brown) at (Random point in Region_Peons[(Random integer number between 1 and 4)]) facing (Center of Region 008 <gen>) Special Effect - Create a special effect attached to the origin of (Last created unit) using Abilities\Spells\Other\BreathOfFire\BreathOfFireMissile.mdl Ok my main problem is this, during my tests of this particular mini-game, I start up the map...5 seconds goes by the mini-game starts. I see my peon there thats good, the time is set to 12 thats good. Now I wait....and I wait....and I basically wait forever and my demolishers are NOT spawning anymore, 1 week ago during the beginning of making this map this was my first mini-game and the demolishers were spawning then, but now demolishers dont spawn. The part where it says regions_peons, thats my variable of 1-4 where the 1-4 variables is each of 4 regions where the demolishers randomly spawn. And again I say my main problem is my demolishers dont spawn at all. I believe somewhere in these triggers is the problem (I hope :bgrun: ). I also noted something when I activate all of my Map Initialization triggers (other triggers associated with starting the game off) like the leaderboard, the real MAIN Initilization trigger, other triggers that run the game as a whole, when I put em all on and in conjunction to test the demolisher spawn problem, theres a totally Vice-Versa thing. I have my demolishers spawning, BUT my peon didnt spawn at beginning of game nor ever. But that peon not spawning problem is my second worry, I am mainly worried at the moment about my demolishers not spawning whilst I use the basic testing trigger (basic testing trigger is the first first trigger in this post) Please I hope someone can help, I layed out the situation as best as possible, I think ://// P.S - also heres the Demolisher Fire trigger, might as well put this incase this is the problem, this is the trigger which gets the demolishers to randomly fire in said region Demolisher Fire Events Time - Every 2.00 seconds of game time Conditions Actions Unit Group - Pick every unit in (Units owned by Player 12 (Brown)) and do (Unit - Order (Picked unit) to Attack Ground (Random point in Region 008 <gen>)) I really hope someone can help...laters all |
| 07-20-2003, 03:16 PM | #2 |
gah hope someone can help even if you think there is no problem in these triggers, post that plz I know its long, but I really need help with this I am sure I layed it out for maximum viewing convenience |
| 07-20-2003, 05:31 PM | #3 |
awwwwwwwww no replies emote_confused anyway I guess I need to troubleshoot this problem to death |
| 07-20-2003, 07:01 PM | #4 |
LOL duh! There is no problem in those triggers the problem is when I tested using my map initialization triggers I forgot that the set variable trigger wasnt set up for testing as in there was no event so it was never initializing hehe silly me so i set the variable trigger to time elapsed 5 seconds walla it worked |
| 07-20-2003, 07:17 PM | #5 |
wow a whole thread just only u responding how funny!:ggani: |
