Constant Check For Event Triggering

Started by LivingstoneIPresume, August 29, 2011, 01:35:03 pm

Previous topic - Next topic

LivingstoneIPresume

August 29, 2011, 01:35:03 pm Last Edit: August 31, 2011, 11:48:30 am by LivingstoneIPresume
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?

LivingstoneIPresume

Can anyone help me on this? How to I add a trigger check to the main loop of Blizz-ABS?

Apidcloud

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
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."


Gibbo Glast 2D Engine - The sky is no longer a limit