Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[XP] Question: Using Skills Only When Weilding a Weapon

  •      Hey guys, I have probably the dumbest question in the world, but I have a question. How do you make a skill so that you can only use it when weilding a weapon?
    My Default Stuff:
    Name:                              Trigger:
    Tornado Skill                      None
    @>Conditional Branch: [Aluxes] is [Spiral Sword] equipped
       @>
    :   Else
       @>Text: You cannot use this skill if you are not
                  : wielding the Spiral Sword!
       @>
    : Branch End
    @>
    Name:                       Icon:
    Spiral Sword

    Description:                         
    Used to cast the Tornado Blitz spell.

    Attacker Animation:     Target Animation:
    001: Special Move        004: Hit

    Price:              ATK:                 PDEF:             MDEF:
    5000               350                   0                   0

    STR +:            DEX +:              AGI +:           INT +:
    100                 0                      0                   0

    Element:                           State Change:
    √ Thunder                         + Confuse
    √ Wind
    √ Light
    Name:                         Icon:
    Tornado Blitz                         050-Skill07

    Description:
    Summons a tornado to slice through the enemy.

    Scope:                         Occasion:
    All Enemies                    Always

    User Animation:              Target Animation:
    001: Special Move           004: Hit

    Menu Use SE:                Common Event:
                                      Tornado Skill

    SP Cost:            Power:            ATK-F:            EVA-F:               
    350                   90                  100                0

    STR-F:              DEX-F:            AGI-F:             INT-F:
    100                   0                   0                     0

    Hit Rate:            PDEF-F:          MDEF-F:          Variance:
    100                   0                   0                    15
    After What Unka Josh said:
    Name:                              Trigger:                               Switch:
    Tornado Skill                      None                                   0003: Tornado Blitz
                       

         I am pretty new at RPG Maker XP, so I am clueless. If there is a script or something, please give me a link to the topic, or post it here. I will give credit to whoever made the script. I would like to know this so I don't have to go through the trouble of wasting hours trying to figure this out, remember I'm new,  :tongue:. I would really love to get on with my game.

    Thanks in advance,
                        Shadows Forger

    P.S.- If anyone needs anything else, just ask and I'll post it here!
 
It's important to remember that common events called by a skill go off after the skill itself. 

Instead, here's the standard way to do a skill that you need a particular weapon to activate:

Parallel-process common event.

Conditional branch:  Is [Aluxes] equipped with [Spiral Sword]?

Yes:  [Aluxes] Learn skill [Tornado]

No:  [Aluxes] Forget skill [Tornado].

You'll need to turn on a switch of some kind to activate the event, of course.  If you don't want the skill to be learned until Aluxes is at a certain level, as well as having the sword, you can add more conditional branches.

Will that work for you?
 
I'm going to make a guess here as to what you've done, but I could be wrong, so bear with me, please.

Did you turn the "Tornado Skill" common event into the parallel-process event?  If so, it's going to continually run that event if the switch is on, so it'll keep telling you that you don't have the spiral sword until such time as you do. 

That would suck.

The parallel-process event should only have the conditional branch that teaches you the skill, or causes you to forget it, and nothing else.  Sure, it'll be constantly making you learn (or forget) the skill, but that's not a problem, and it won't mess with anything.

There is another way to do this, BTW, that's closer to what you have in mind, but it's a bit more complicated.  Nevertheless, I'll toss it in here.

1)  Create a "Tornado" skill that has no effect other than calling the "Tornado Skill" common event.  That's right.  Nothing else.

2)  Create a "Tornado" skill that does all the damage, confusion, wind-element effects.  Do not make this a skill that Aluxes will learn on his own.

3)  The "TS" common event will have a conditional branch, as you have it there.  If you don't have the Spiral Blade, it'll tell you that you need it, and that's all it will do. 

If you do have the blade equipped, then make Aluxes learn the second tornado skill, use Force Action to make him execute it immediately, and then, in the same branch, have him forget that skill.

If you do all that, it'll do what you want, I think. 

However, my original suggestion will probably work better, and be faster and easier to code.
 
I know that I'm being really hard to work with, but everything is working fine, except when I use the skill, nothing happens. But when it's not equipped it works how I want it to. I think it's because of my force action. It's my first time using force action, so what should it look like? Thanks.  :smile:
 
Well, let's check the basics, first. 

What did you create for the settings for the "Tornado" skill itself-- the one that does damage?  Did you create it with Scope [One Enemy] or [All Enemies], and Occasion [Battle]?  That's an easy thing to overlook.

As for Force Action:

Force Action:  Actor [1, or whatever the player's position is]  Action:  Skill [The damaging Tornado attack]  Action Target [Last Target, or Random, or whatever-- if it's an All Enemies skill, it won't matter, anyway]  Timing [Execute Now]

Hopefully, that will clear it up.
 
I'm so sorry about wasting your time, but I forgot to tell you that I'm using "Mr.Mo's Squad Based ABS"! I totally forgot about that. =( And it's still not working. =( Maybe I need help from Mr.Mo. So sorry, but thanks for helping! I did not mean to waste your time!

EDIT: Nevermind this post!  :tongue: Took away the ABS Script, and it works perfectly! Thanks for your help, seriously!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top