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.

Variable issue [Resolved - Bug in VX 'Control Variables' event command/script]

Marpy

Member

Well, one of my characters is an alchemist. Her skills make potions and such. Now, let's say I want her to make a potion, and it will require.. say, a vial, and two medical herbs. I set the conditional branch up, to check and see if the party has the vial. Then I set up the conditional branch to check if the party has a medical herb. It does, so I now set up a variable equal to the number of herbs in the inventory. If it's greater then, or equal to, two, then presto, potion. But the variable doesn't work.
http://img.photobucket.com/albums/v389/ ... riable.png[/img]
Picture of the variable I try to set.
 
There is a bug in Game_Interpreter.

Before line 750, add

    when 4  # Actor

then it works just peachy!

[ edit ]  oops,  then change line 751 from/to
[ edit again ] just delete that line, it doesn't do anything...

  #  actor = $game_actors[@parameters[1]]

For clarity, that section of code should look like...  (lines 748-752)
Code:
    when 3  # Item
      value = $game_party.item_number($data_items[@params[4]])
    when 4  # Actor
      actor = $game_actors[@params[4]]
      if actor != nil
        case @params[5]
        when 0  # Level
          value = actor.level
etc....

I also copied the Scripts.rvdata file, after saving, back to
C:\Program Files\Enterbrain\RPGVX\System\Data
so I won't have to fix it everytime I start a new project.

Be Well
 
Good thinkin'!  (I gotta remember to update the FAQ when I see stuff like this)

Do you think anyone reads the FAQ?  :puzzled:

That's why I changed the title to make it more noticable.

I guess we'll find out if we see a whole bunch of other posts about the same problem.

Hey, even a blind squirrel finds a nut every once in a while!  :scruff:

Be Well
 

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