Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: LivingstoneIPresume on August 29, 2011, 01:35:03 pm

Title: Constant Check For Event Triggering
Post by: LivingstoneIPresume on August 29, 2011, 01:35:03 pm
I'm presently working on a trap system for Blizz-ABS(I know one already exists, I'm still learning to script and practical attempts are allegedly the best way to go about it.) and I'm having some trouble with triggering. I don't know how I would go about continually finding out if the player meets specified condition without creating a loop which freezes the game.
Also, I'm having trouble with triggering the event- when I try, I end up crashing the game with an error that says "no method > for nil nilclass" or something to that effect.

Thanks in advance,
Livingstone
EDIT: So can anyone tell me the main loop in Blizz-ABS?
Title: Re: Constant Check For Event Triggering
Post by: LivingstoneIPresume on August 31, 2011, 11:49:50 am
Can anyone help me on this? How to I add a trigger check to the main loop of Blizz-ABS?
Title: Re: Constant Check For Event Triggering
Post by: Apidcloud on August 31, 2011, 12:51:40 pm
I'll assume that you want to check that trigger while you're on the map.
If so, just add your conditional branch after 'def update' of Scene_Map =)

Scene_Map Main loop as 'update' there, which calls update method => def update.

That way, everything can be updated/refreshed.

Good luck