In-game tutorial help

Started by legacyblade, November 26, 2008, 07:44:00 pm

Previous topic - Next topic

legacyblade

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 ^_^

Satoh

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?
Requesting Rule #1: BE SPECIFIC!!

Light a man a fire and he'll be warm for a night...
Light a man afire and he'll be warm for the rest of his life... ¬ ¬;

My Resources

legacyblade

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.

Fantasist

November 26, 2008, 10:16:16 pm #3 Last Edit: November 26, 2008, 10:17:20 pm by Fantasist
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.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Blizzard

November 27, 2008, 09:14:29 am #4 Last Edit: November 27, 2008, 09:16:30 am by Blizzard
Argh... Let me add the possibility to trigger buttons via script calls in v2.0.

In the meantime...

Code: v1.99
BlizzABS.player.actors[POSITION].setup_sprites('_atk')


Code: v2.0
$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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

legacyblade

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.

Blizzard

You can also simply use this:

$game_player.use_attack


But this will execute the entire attack. >.<
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

legacyblade

Executing the attack is fine, seeing as how the user isn't next to any enemies at the time. Thanks blizz!

Blizzard

Blizz-ABS simplicity and abstraction is just awesome, isn't it? ^_^
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

legacyblade

Yes, I love the organized bABS code.  I may not understand it all, but it's definitely easy to configure.