Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Jragyn on May 04, 2011, 10:26:33 pm

Title: [RESOLVED] Script Common Event Call... how?
Post by: Jragyn on May 04, 2011, 10:26:33 pm
What would be the script call while using a full input module (Blizz-ABS) to detect whether or not any of the buttons have been pressed while on the map? (ie: the attack/defend/direction-arrows/skills/etc)

Trying to make a small event that counts the number of keypresses and saves them to a variable for later use... have managed to do each key individually, but I can't imagine how to do all of them X_X

EDIT: Also, is there a easy-ish way to call a common event via script-calling?
ie: $data_common_events[12].execute
???
Title: Re: input::[ANY key]... how?
Post by: winkio on May 04, 2011, 10:29:36 pm
Perhaps you are looking for ALL_KEYS?  as in, Input::ALL_KEYS, which is an array that contains all the keys that Blizz-ABS checks.
Title: Re: input::[ANY key]... how?
Post by: Jragyn on May 04, 2011, 11:20:21 pm
Quote from: winkio on May 04, 2011, 10:29:36 pm
Perhaps you are looking for ALL_KEYS?  as in, Input::ALL_KEYS, which is an array that contains all the keys that Blizz-ABS checks.


I'm sure if I would've just looked in the Blizz-ABS script Input module thing, I woulda noticed that -.-'' thanks Winkio, but wait, theres more! (while I sorta have you here?)

Is there a script call to just... execute/run a common event?
$data_commonevent[12].do_your_stuff
?? XD
Title: Re: Script Common Event Call... how?
Post by: winkio on May 04, 2011, 11:29:17 pm
assuming you are on a map:

$game_system.map_interpreter.setup($data_common_events[12].list, 0)
Title: Re: Script Common Event Call... how?
Post by: Jragyn on May 04, 2011, 11:44:32 pm
Clever!
Where would that call not be usable, though?
A menu?
Title: Re: Script Common Event Call... how?
Post by: winkio on May 04, 2011, 11:46:32 pm
well, the only other place you can call common events besides the map is in battle.
Title: Re: Script Common Event Call... how?
Post by: Jragyn on May 04, 2011, 11:54:09 pm
Derp, of course.
Well then, that answers that.
Thank you kindly for your wisdom, Winkio.

I will treasure the knowledge like a squirrel treasures acorns.
Title: Re: [RESOLVED] Script Common Event Call... how?
Post by: ForeverZer0 on May 05, 2011, 12:14:58 am
Make sure you alter winkio's above script call if you are in battle to: "battle_interpreter" and not "map_interpreter"