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.

Enemy call for help skill problem [Rmxp]

Hi, I'm doing a skill for certain enemies in my project that can call for help when they are about to die and made a skill linked with a common event to make it work (Well it should).

I added 2 appear halfway enemies among the main monster and put this in the common event:

A variable with random 1 to 10
Another variable with random 0 to 5
[Text Message]
Conditional Branch if first variable is 6 or higher then:
Conditional Branch if 2nd variable is 4 or higher then:
Make enemy 2 and 3 appear
Else
Make enemy 2 appear

That's it.

For some reason it is not working and I can't understand why :S Is it because random events don't work well in combat?

Anyone knows a solution?

Thanks.
 
Found the problem it was a silly one.

By mistake I made the first random variable different from the conditional branch one and so it wasn't working :blush:

Thanks anyway this can be closed.
 
Damn, and I went though all this trouble to make this. Oh well, its here if anyone else wants to learn how.

Step 1:
  • Make a new skill for the enemy, I'm calling it SOS. Put the scope on none.
  • Make a Common event that sets a random variable and turns on a switch.
  • Have the new skill call the common even.
    step2.png

Step 2:
  • Hide the 2 enemies you want to appear halfway by rightclicking on them.
  • Make a battle event condition triggered when the enemy's HP is below 50%
    step1.png

Step 3:
  • In the battle event page add Force Action: SOS
  • Ignore the action index, since the skill's scope is none.
  • "Execute Now" lets the enemy act as soon as the conditions are met.
    step3.png

Step 4:
  • Make a new Battle event page. Its triggered by the switched we turned on with the common event in step 1.
  • Make a conditional branch that looks at the variable you set with the common event.
    If its <= 5 then appear enemies 2 and 3
    else appear only enemy 2.
  • Finally, turn off Switch that the common event turned on. Otherwise the next time you fight this troop they won't been hidden.
    restep4.png
 
Ah, sorry :/

I didn't use a switch on mine just like this:

eventhb.png


Excluding the first variable having nothing to do with the skill it works after fixing that first variable.
 

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