Hey everyone. For the game I'm making, I need to know how to do a few things with script calls.
1. show a message box
2. access the Blizz ABS sprite handling (aka, I need it to do the attack sprite, or the skill sprite when the player presses a button)
If anyone could help, that'd be great ^_^
Quote from: legacyblade on November 26, 2008, 07:44:00 pm
Hey everyone. For the game I'm making, I need to know how to do a few things with script calls.
1. show a message box
2. access the Blizz ABS sprite handling (aka, I need it to do the attack sprite, or the skill sprite when the player presses a button)
If anyone could help, that'd be great ^_^
You need it to look lik an attack, without BEING an attack right? Otherwise why not just use an attack?
Well I don't know how to call the attack function. It just shows the attack animation and then moves on to the rest of the tutorial.
Here's my idea:
Message: You can attack by pressing the J key. Go ahead and try it.
Script Call: BABS ON
Conditional Branch: If Input.trigger?(Input::Let['J']) then BABS OFF
Message: Good. Now blah blah and so on...
EDIT: Maybe that conditional branch needs to be in a seperate page set to parrallel process. Sorry, I'm not too good at eventing.
Argh... Let me add the possibility to trigger buttons via script calls in v2.0.
In the meantime...
BlizzABS.player.actors[POSITION].setup_sprites('_atk')
$BlizzABS.actors[POSITION].setup_sprites('_atk')
Message box is a bit more complicated since you need to manuall set up the event command. Just check out which parameters are needed for the window and make an interpreter instance that creates the window. As I said, it's a bit complicated. You can check out how I created an event for dropped stuff by checking out my class Drop_Event in Blizz-ABS. Keep in mind that it adds a real event on the map, it doesn't start it.
What is the position variable referring to? The player's position? Anyways, I'll probably figure it out when I mess around with it, so thanks a lot for giving me the info ^_^
and ok, I'll make an instance of the window class. Making a message box will be easier than a CMS, so it should be no problem. And mentioning creating an event via script call gave me an idea for something else I was struggling with in the game. thanks for your help blizz.
@Fantasist, I know you can do that. But it starts looking so messy. I'll do that if nothing else works.
You can also simply use this:
But this will execute the entire attack. >.<
Executing the attack is fine, seeing as how the user isn't next to any enemies at the time. Thanks blizz!
Blizz-ABS simplicity and abstraction is just awesome, isn't it? ^_^
Yes, I love the organized bABS code. I may not understand it all, but it's definitely easy to configure.