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.

PrexCraft: How to lean a recipe by using a item?

Scuff

Member

Im using Prexcraft, and i was just wondering if i could somehow make it so when i use a item, i learn a recipe. I also want it so when i use the item, it is consumed.
 
To Learn: $game_party.add_recipe('RECIPE NAME')
To Forget: $game_party.remove_recipe('RECIPE NAME')
From the PrexCraft thread. From there it's as simple as using those script calls in a common event, and having an item call that common event.
 
Create an item, and make sure Consumable is On and Scope is set to None. Have it call a common event. Within this common event, use the script call $game_party.add_recipe(RECIPE_NAME), replacing RECIPE_NAME with the name of the recipe you want your party to learn. You can also use a Show Text command after the script call to indicate what your item did to the player.

I can't be bothered to make a screenshot, but did this help at all?
 

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