PDA

View Full Version : Trigger Debug Help


Nahotnoj
12-07-2004, 10:28 PM
I'm having a very annoying trigger problem, which has been going on for a few weeks, and I can't find anyone who can figure out how to fix it. So I've decided to post my problem here.

I'm making an RPG, where there will probably be forges and upgrade centers in each town, and i dont want to have a location for each building, so ive been using a location centered on your main unit. the problem: when i first made the forge triggers, ((when player 4 (owner of town buildings) brings at least 1 forge to Player (the location centered on the main unit for P1) it gives the forge to P1, when P4 brings 0 forge to Player indicating you've moved away from the forge, all forges are given back.)) they worked fine. But then, I changed a few things: gave all town buildings to P5 in placement. changed triggers to give all town buildings owned by P5 to P4 when P1 is at that town. (for vision purposes) After I added that, I tested again. Now, when im in range of the forge, i cant click it as it appears to be constantly given to P4... or maybe as if its trying to give the forge to me, but then gives it back to P4. No player change seems to be occuring as the colors of the building do not change.

And also, I'm having trouble with my junk yard dog AI. I want units to wander within a certain area, but they keep wandering out of the area. is there a way to restrict the units to staying within a certain location while still roaming with out making terrain barriers?

Help would be greatly appreciated.

StealthyDeath
12-08-2004, 12:03 AM
I'm having a very annoying trigger problem, which has been going on for a few weeks, and I can't find anyone who can figure out how to fix it. So I've decided to post my problem here.

I'm making an RPG, where there will probably be forges and upgrade centers in each town, and i dont want to have a location for each building, so ive been using a location centered on your main unit. the problem: when i first made the forge triggers, ((when player 4 (owner of town buildings) brings at least 1 forge to Player (the location centered on the main unit for P1) it gives the forge to P1, when P4 brings 0 forge to Player indicating you've moved away from the forge, all forges are given back.)) they worked fine. But then, I changed a few things: gave all town buildings to P5 in placement. changed triggers to give all town buildings owned by P5 to P4 when P1 is at that town. (for vision purposes) After I added that, I tested again. Now, when im in range of the forge, i cant click it as it appears to be constantly given to P4... or maybe as if its trying to give the forge to me, but then gives it back to P4. No player change seems to be occuring as the colors of the building do not change.

And also, I'm having trouble with my junk yard dog AI. I want units to wander within a certain area, but they keep wandering out of the area. is there a way to restrict the units to staying within a certain location while still roaming with out making terrain barriers?

Help would be greatly appreciated.

1. Did you change the condition? P5 bring 0 forge to player.

2. You'll need to place locations around the area you want to keep them in. When they bring a unit there, have them order back into the area.