So, I found Hime Gold Formula script and I want it to multiply the gold received from every troop based on the chosen difficulty level of the game.
The easier the difficulty, the lower percentage of gold you obtain from battle. Thus, you are rewarded with more gold on higher difficulties, where your stats are less and it requires more XP to level up. And I am using switches to control the difficulty level and I want to use those same switches to determine gold awarded amounts.
Basically I got this setup here for the noteboxes (inform me if I am wrong):
Now I do not think I need the fallback as one of these switches turns on when you select the difficulty at the start of the game, but I was told to have it.
Is this correct for the gold formula?
Also, is there a scriptlet or something I can under the Hime Gold Formulas to make this code global so I do not have to input it into literally every enemy noteboxes? I do not trust the one that GPT shoved in my face, so I want to make sure its right.
Please and thank you very much for any information.
The easier the difficulty, the lower percentage of gold you obtain from battle. Thus, you are rewarded with more gold on higher difficulties, where your stats are less and it requires more XP to level up. And I am using switches to control the difficulty level and I want to use those same switches to determine gold awarded amounts.
Basically I got this setup here for the noteboxes (inform me if I am wrong):
Ruby:
<gold formula>
if s[2] # Child difficulty
gold * 0.5
elsif s[3] # Easy difficulty
gold
elsif s[4] # Medium difficulty
gold * 1.5
elsif s[5] # Hard difficulty
gold * 2
else
gold # fallback if no switch is ON
end
</gold formula>
Now I do not think I need the fallback as one of these switches turns on when you select the difficulty at the start of the game, but I was told to have it.
Is this correct for the gold formula?
Also, is there a scriptlet or something I can under the Hime Gold Formulas to make this code global so I do not have to input it into literally every enemy noteboxes? I do not trust the one that GPT shoved in my face, so I want to make sure its right.
Please and thank you very much for any information.