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.

[Resolved] Summoning with Common Events

I've been using common events for a summon/dismiss skill in my game, but a problem appears.  The second time something has been summoned, the graphic for the character won't appear.

EX:
Summon CreatureA - Everything is OK
Release CreatureA - Everything is OK
Summon CreatureA Again - Battler graphic doesn't appear

I wasn't sure if this is a scripting error or was something that can be fixed with events, so I put it here.  Does anyone know how to fix this?

@>Conditional Branch: [CreatureA] is in the party
  @>Change Party Member: Remove [CreatureA]
  @>Control Switches: [001: Summoning] = OFF
:  Else
  @>Conditional Branch: Switch [001: Summoning] == OFF
      @>Text: CreatureA:
      :        :  Roar!
      @>Change Party Member: Add [CreatureA]
      @>Control Switches: [001: Summoning] = ON
      @>Exit Event Processing
      @>
  :  Else
      @>Text: You can only have one summon out at a time.
  :  Branch End
  @>
:  Branch End
@>

~Guardian1239
 
Well, you've made a mistake in your code.
You don't actually even need the switch, I think.
Try this:
@>Conditional Branch: [CreatureA] is in the party
  @>Change Party Member: Remove [CreatureA]
  :Else
    @>Text: CreatureA:
    :        :  Roar!
      @>Change Party Member: Add [CreatureA]
Branch End

Let me know if that works for you.
 
I use the switch so that the player can't summon more than one creature at a time.  It's a switch which would be found in all of the summoning common events.  Your version does work, but I usually have multiple creatures for a summoner.

~Guardian1239
 

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