RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Pulling a Recipe out of a Hat...

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 89
... I got nothing.
So, I'm using Cmpsr2000's Crafting system, I was wondering If anyone knows if it's possible to randomize the recipe received. I was thinking of maybe, like, tying a variable to the recipe learnt value, then randomizing the variable, but, then I realized that I absolutely suck at scripting, So my attention turned  towards asking you guys for help, I looked here for the solution, but, I couldn't find it.

Any Ideas?

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
I don't recall how you use recipes in the script, but you could just event it. If a recipe is an actual item then just randomize the items you get that are recipes or if you call script just randomize which call script is used to learn a recipe. etc.

***
Rep:
Level 89
... I got nothing.
Well, yeah, that was the other option,

"If Variable: Random = 7
    Then
         Teach this one
     else
If Variable: Random = 8
     then
         teach this one
     else
...
"
Gets really really old, especially since I have like, 381 Recipes.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
By teach this one, is that a call script command? Or giving an item? Because if it is a call script that you have to pass an ID for, all you would need is to replace the ID with $game_variables[random_variable_id]

or even just rand (381)

***
Rep:
Level 89
... I got nothing.
Thanks! That helped a lot, I understand now.  It was through the scripting.