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.

Help eventing with multiple variables

im trying to make an event in the pokemon starter kit where depending on which variable gets activated, someone will give you a pokemon that goes with that variable. i am using 12 different variables. i need some help writing it out. any help?

Here is the code im trying to use
Conditional branch: variable [0027: totodile] ==1
                  script: pbaddpokemon(158,5)
          Else
          Branch end


          Conditional branch: variable [0028: Mudkipe] ==1
                  script: pbaddpokemon(285,5)
          Else
          Branch end

Its basically like that, but with the rest of the starter pokemon, excluding pikachu
 
just use a single variable, and set it so the event is triggered depending on what the value of the variable is. you're using the variables like switches, which completely defeats the purpose of using variables, and overcomplicates the process.
 

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