PDA

View Full Version : Getting an event to force a page change


thetruecoolness
07-15-2005, 09:18 PM
I've been playing around with how to get enemies on screen to spot the party and then catch up to them and start a battle. I've got the catching up part working using an action script, but when I change a flag in that action script which is supposed to make the event change it's page it does not. It seems that page changes only occur when an outside event changes a flag, or another event is executed (not a script an event). I was wondering if anyone has run into this before and possibly has a better solution than having the party have to press the square button to begin battle? I remember hearing about this a while ago on one of these forums though I don't remember a solution being offered.

Right now the event will attempt to catch up to the party and will become equal to them so they can't move (it has bypass objects on and bypass party members off). This forces them to have to press square since they can't move, but I would like to see a better solution. Of course if the party happens to walk into the event the battle will start automatically because of equals. I don't want random battles, and I was doing this in an attempt to make battles not ridiculously easy to not get into by just having it start on equals or touch. So any helpful hints are appreciated.

Crimson Knight
07-15-2005, 09:52 PM
The game checks event conditions only when a content script is run. You can use an indirect effect.

thetruecoolness
07-15-2005, 10:00 PM
I tried that and it still didn't change the page. Though the square button still works. I used a custom indirect effect which shows only the leader each step. I even made it add to a variable so it essentially checks the number of steps. So it calls a content script every step, but does not seem to make the other event change pages.

neobi
07-15-2005, 10:01 PM
You need to put something in the indirect effect.

thetruecoolness
07-15-2005, 10:51 PM
Well I did find the solution over on Doans board. Basically you screw the whole changing page stuff, and just put the logic for starting the battle in the custom effect script. This way the next step they take they will get in a battle if the enemy touches them. And this works so I'll go with it.