this is amazing. would you be able to help me a bit .
in my game i have it so Apricorns can be planted and balls have been removed from Marts. the intention is to have Ball makers spread around the region with certain town having access to some of the special balls eg the beach town has acces to the netball as a extra on top of what ever the current level of main ball unlcoked by badges.
i want to be able to use this to create Balls but i would like it to have a time limit like Kurt normaly does eg. a player truns up with 2 white apricorns and 1 red and 1 blue then proceeds to "order" a great ball costing 1 white and blue apricorn and also order a poke ball. first ball will take say a hour to make and any other balls added will take extra time say a hour each (if its a variable that can be change it allows balancing to be implemented. if it sound posible to implement using your resource that would be amazing.
this is amazing. would you be able to help me a bit .
in my game i have it so Apricorns can be planted and balls have been removed from Marts. the intention is to have Ball makers spread around the region with certain town having access to some of the special balls eg the beach town has acces to the netball as a extra on top of what ever the current level of main ball unlcoked by badges.
i want to be able to use this to create Balls but i would like it to have a time limit like Kurt normaly does eg. a player truns up with 2 white apricorns and 1 red and 1 blue then proceeds to "order" a great ball costing 1 white and blue apricorn and also order a poke ball. first ball will take say a hour to make and any other balls added will take extra time say a hour each (if its a variable that can be change it allows balancing to be implemented. if it sound posible to implement using your resource that would be amazing.
I want to make recipes unlockable in my game, is that possible? For example, instead of getting tm's you would get tm recipes and you could craft the tms.
I want to make recipes unlockable in my game, is that possible? For example, instead of getting tm's you would get tm recipes and you could craft the tms.
It certainly is possible! I think the easiest way to do this would be to use switches. When the player "learns" a new recipe, activate a switch. Then, in your item crafting NPC event, have new sets of recipes offered according to what switches are turned on. This is conceptually similar to how the Poké Marts work. You could use a variable instead, increasing its value by 1 every time you get a new recipe, if you know how to use these. This latter approach would require just one variable rather than multiple switches, so would be easier to manage.
Got back a error while testing (finally got to this after bug testing a acro bike script to death and then had a go at updating to v19 to find that it had loads of small bugs with normal things though it was nice to have following Brendan's back. but the issues with map transitions from building was getting annoying)
so im back to v18 till its more stable
i know that on my page 4 of the event i have a switch named "0062 s:cooledDown?(" luckily 61 was the last switch i had used.
and on page 1 i have a "Else" in the conditional branch that you didnt and i couldnt figure out how to remove it. had each stage a different pokemon to visually see when it was at each stage.
Got back a error while testing (finally got to this after bug testing a acro bike script to death and then had a go at updating to v19 to find that it had loads of small bugs with normal things though it was nice to have following Brendan's back. but the issues with map transitions from building was getting annoying)
so im back to v18 till its more stable
i know that on my page 4 of the event i have a switch named "0062 s:cooledDown?(" luckily 61 was the last switch i had used.
and on page 1 i have a "Else" in the conditional branch that you didnt and i couldnt figure out how to remove it. had each stage a different pokemon to visually see when it was at each stage.
The name of the switch got cut off in my screenshot. It should be s:cooledDown?(X), X being the number of seconds to wait. For testing, I used 10 seconds, but you can use whatever value seems reasonable for Pokéball crafting.
As for the "else" condition, you should deselect the tick box when editing the conditional branch that says "Set ... when conditions do not apply". I forget what it says exactly, but it should be obvious from that.
Hi! This script looks really awesome, but it keeps throwing a runtime error at me. I'm using v19.1 and I copied one of your examples after I installed the plugin and graphics and I got this error:
If you could tell me what I'm doing wrong that would be great!
Hi! This script looks really awesome, but it keeps throwing a runtime error at me. I'm using v19.1 and I copied one of your examples after I installed the plugin and graphics and I got this error:
Hello! With the script box open in RPG Maker XP, run the extendtext.exe program that's in your project's main folder. After a few seconds of loading, you should see that your script box, well, extends so that each recipe occupies one line! It should work after that.
Hello! With the script box open in RPG Maker XP, run the extendtext.exe program that's in your project's main folder. After a few seconds of loading, you should see that your script box, well, extends so that each recipe occupies one line! It should work after that.
Wish it was possible to put this as an option in the pause menu instead of an event for the sake of player quality of life, but I get that that is probably just another limitation of the script. Excellent work, regardless.
Wish it was possible to put this as an option in the pause menu instead of an event for the sake of player quality of life, but I get that that is probably just another limitation of the script. Excellent work, regardless.
This is actually possible and doesn't require many changes to the original script.
Find def pbItemCrafter at the bottom of the script that comes with this resource and replace it with this:
Ruby:
def pbItemCrafter(stock)
for i in 0...stock.length
raise _INTL("You are missing an ingredient or quantity value.") if stock[i][1].length%2 !=0
itemdata = GameData::Item.try_get(stock[i][0])
for j in 0...stock[i][1].length/2
ingr = stock[i][1][2*j]
cost = stock[i][1][2*j+1]
if !GameData::Item.try_get(ingr) || cost==0
raise _INTL("At least one ingredient or quantity value is invalid.")
end
end
if !itemdata # If target item does not exist
stock[i] = nil
end
end
stock.compact! # Remove nils
if stock.empty?
raise _INTL("After data validation, there are no items left in your input array. Please check for typos before trying again.")
end
end
You might have noticed that the number 123 appears a few times in these new lines you've added. That's because I've used game variable 123 to store the crafting recipes. This approach allows you to have the player "learn" new recipes on the fly by adding those recipes into this game variable. Here's an example of what I mean (this bit will need to be in an event):
Ruby:
pbGet(123).push(
[:SITRUSBERRY,[:POTION,2]]
)
Here, we take our game variable 123 (which is an array - I'll get onto that at the end) and we append it with our Sitrus Berry recipe. You'll notice that the formatting is identical to the original resource.
You can have the player learn multiple recipes at once like this:
If you want to use a different game variable, you just have to change the 123 everywhere.
Now for the most important part. Before the player is to learn a new recipe, you need to put this bit of code somewhere:
Ruby:
pbSet(123,[]) if pbGet(123)==0
You can put it in the same event where the player learns their first recipe or, if you're not adding this to a game with players already having save files, you can put it in the intro event. It's up to you. All I'll say is if you don't put it before the first recipe is learned, your game will crash.
I think that's all you need. If you're using a custom pause menu, I'll let you work out how to get this working with that based on the information I've given.
Let me know if there are any issues with this.
@ThatWelshOne_ Thanks for the quick response (I was not expecting one at all, tbh), and yeah, I am using a custom pause menu (Voltseon's to be specific), but since I do not know how to code anything for myself, I will probably have to pass on trying to add it to the menu.
@ThatWelshOne_ Thanks for the quick response (I was not expecting one at all, tbh), and yeah, I am using a custom pause menu (Voltseon's to be specific), but since I do not know how to code anything for myself, I will probably have to pass on trying to add it to the menu.
It's fairly straightforward to add this to Voltseon's Pause Menu instead if you like.
Go to Plugins/Voltseon's Pause Menu/001_VoltseonMenu_Config.rb
Find the MENU_ENTRIES array and add "MenuEntryCrafting" just before "MenuEntryQuit".
Then, in the same directory, open the file called 005_VoltseonMenu_Entries.rb and paste this at the bottom:
Ruby:
#-------------------------------------------------------------------------------
# Entry for Simple Item Crafting
#-------------------------------------------------------------------------------
class MenuEntryCrafting < MenuEntry
def initialize
@icon = "menuDebug"
@name = "Crafting"
end
def selected(menu)
pbFadeOutIn(99999) {
scene = ItemCraft_Scene.new
screen = ItemCraft_Screen.new(scene,pbGet(123))
screen.pbStartScreen
}
end
def selectable?; return !(pbGet(123)==0 || pbGet(123).empty?); end
end
And that's it! Even simpler than the default pause menu in my opinion. Everything else in my previous post applies.
This section is for the discussion of the tutorials and resources on Eevee Expo. To find tutorials and resources, check out the Tutorial and Resource Manager for optimal navigation.