scripts calling help

anyone who's pretty good at using scripts help me figure out how to make a call command work. it I need like a simple breakdown of where do I place what and if I need to do something in order to make it even work. if any one is will that would be greatly appreciated.

i'd post a line to the script I have in mind but for some reason I can't do that
You need to give us more information before we can help you.


What are you trying to do?
do you know about the skill upgrade script? i'm trying to use that but I don't fully understand how to use it. there's not enough info ( to me ) that explains how to get it to work. i'v tried many times to learn it on my own but with no luck. i'v been told to use the call command but where do I use it? in the script? with the skills? somewhere in the menu? or set it as an event? there's nothing giving good detail on what to do? now if there is enough info then i'm not seeing, ether I just don't under stand or its very simple to do and i'm just an idiot for not getting it. i'd give a link to it but I can't for some reason.
Which skill upgrade script? Kread-EX's? Dekita's? whose?
Kread-EX
All of the following tags goes into the note tag section for your skill (Open database (F9), click on the skill tab, and look for note on the bottom right hand corner)
<upgrade_cost: x>  This is the base cost of the skill.
<upgrade_formula: string>  The formula to calculate the JP/Gold/Variable cost. Overrides the default formula and needs to be valid Ruby syntax.
<max_level: x>  The maximum level a skill can attain.
<upgrade_damage: x>  Every level, the skill’s damage will raise by x%.
<upgrade_mp: x>  Every level, the skill’s MP cost will raise by x%.
<upgrade_tp: x>  Every level, the skill’s TP cost will raise by x%.
<level_morph: x, y> At level X, skill will become skill Y. This is a one-way process and downgrade won’t be available after a morphing.
 
lS09hVa.png

According to the note tag I set for my cleave skill:

  • The base upgrade cost is 100 gold
  • The upgrade cost increase by the level multiplied by the base (so it costs 100g to upgrade when cleave is at lvl 1, 200g to upgrade when cleave is at lvl 2, etc)
  • The max level is 5
  • Once the skill reach level 4 (that was a typo, I meant for it to be 5), it will change into skill id 74, which is Nuclear. Once a skill morphed, you won't have it anymore, but you will have a new skill instead.
I didn't include the TP/Damage/MP thing since they are pretty straight forward.
Without Yanfly's JP manager, it will only cost you gold to upgrade.
 
 
In order to access the upgrade menu, you need to create an NPC and use the script call SceneManager.call(Scene_Upgrade)
Refer to the following image if you don't know how to do that.

VjhgsLM.jpg
i'm trying to use that but I don't fully understand how to use it. there's not enough info ( to me ) that explains how to get it to work. i'v tried many times to learn it on my own but with no luck. i'v been told to use the call command but where do I use it? in the script? with the skills? somewhere in the menu? or set it as an event?
It reads as if you're having problems with the script basics.


I suggest you follow the link "how to use a script§ in my signature as that explains all possible ways how to configure and access a script.
WithouIn order to access the upgrade menu, you need to create an NPC and use the script call SceneManager.call(Scene_Upgrade)

Refer to the following image if you don't know how to do that.
ah i see thats why i wasn't getting it. i tested it and i got it to work but i was wondering if i could make the window work from the main menu instead of it being from an npc. that of i make it a useabl item or something?
Yes. It is possible.

Do you have yanfly item menu script installed?
Yes. It is possible.

Do you have yanfly item menu script installed?
yes i do
Okay, then its easy

First part

Add this under COMMAND = [

:skill_upgrade,Second part

Add this under CUSTOM_COMMANDS = [ 

:skill_upgrade => [ "Skill Uprade", 0, 0, :command_upgrade],Third part

Add this under class Window_MenuCommand < Window_Command

when :skill_upgrade next unless $imported["KRX-SkillUpgrade"] process_custom_command(command) If done correctly, this will look like:

Spoiler
#==============================================================================# ■ Window_MenuCommand#------------------------------------------------------------------------------# This class is kept towards the top of the script to provide easier access.#==============================================================================class Window_MenuCommand < Window_Command #-------------------------------------------------------------------------- # overwrite method: make_command_list #-------------------------------------------------------------------------- def make_command_list for command in YEA::MENU::COMMANDS case command #--- Default Commands --- when :item add_command(Vocab::item, :item, main_commands_enabled) when :skill add_command(Vocab::skill, :skill, main_commands_enabled) when :equip add_command(Vocab::equip, :equip, main_commands_enabled) when :status add_command(Vocab::status, :status, main_commands_enabled) when :formation add_formation_command when :save add_original_commands add_save_command when :game_end add_game_end_command #--- Yanfly Engine Ace Commands --- when :class next unless $imported["YEA-ClassSystem"] add_class_command #--- Imported Commands --- when :sslots next unless $imported["YSA-SlotBattle"] add_sslots_command when :grathnode next unless $imported["KRX-GrathnodeInstall"] process_custom_command(command) when :gogototori next unless $imported["KRX-AlchemicSynthesis"] process_custom_command(command) when :skill_upgrade next unless $imported["KRX-SkillUpgrade"] process_custom_command(command) #--- Imported Commands --- else process_common_event_command(command) process_custom_command(command) end end end  
Last part,

Add this at the very bottom, right above end #Scene_Menu  (The commented title section is just so you know what was that section for)

#-------------------------------------------------------------------------- # new method: skill_upgrade #-------------------------------------------------------------------------- def command_upgrade return unless $imported["KRX-SkillUpgrade"] SceneManager.call(Scene_Upgrade) endEDIT: Fixed typo
Okay, then its easy

First part

Add this under COMMAND = [

:skill_upgrade,Second part

Add this under CUSTOM_COMMANDS = [ 

:skill_upgrade => [ "Skill Uprade", 0, 0, :command_upgrade],Third part

Add this under class Window_MenuCommand < Window_Command

when :skill_upgrade next unless $imported["KRX-SkillUpgrade"]
thanks i got it to work ^^

oh by the way did you have any kind of strange error with the hp mp tp bars looking al messed up in the menu screen?
I did notice that once when I am messing with Yanfly's Class system script.

But other than that, no. 

This script or the implementation should have no affect on the HP/MP/TP bar display
I did notice that once when I am messing with Yanfly's Class system script.

But other than that, no. 

This script or the implementation should have no affect on the HP/MP/TP bar display
ah ok well i just make another thread on that if i can't fix it

Original thread: https://forums.rpgmakerweb.com/threads/scripts-calling-help.49794/