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.

Random chance item call. HELP!!!!

Alright, In my game instead of Magic power I have cards, so to restore some of that in battle, instead of a potion I called it a booster pack,

What I need is a script that will allow that item (booster pack) to Give a RANDOM chance at Giving the user another item and saying so on screen,

OR if that's not possible or too hard, a RANDOM chance that using this item (booster pack) in battle will unleash a certain skill.


Could anyone set up a script for me, or perhaps show me a way to do this without a script?
 
This can be done without a script.
All you need to do is make a common event, call it "booster pack"
At the start of it, set a variable, and make it random (1~100)
Then you need to set some conditional branches.
Along the lines of
"Conditional branch: Variable Booster = 35
Change Items: Firestrike+1
Show text: Got Firestrike!
else

end branch"

That's as basic as I can get really.
If you want, just tell me and I'll make a quick demo for you.
 

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