Inn Based on protagonist's Level

I'm trying to figure out a simple way to have the Inn's cost be [Protagonist's Level] x 100. (Level 1 is 100g, level 10 is 1000g, etc)
So that as the game goes on, the price steadily rises due to the protagonist being locked.
Hi JosephFreeman.

I think I have a solution for you! The following will show you a simple way to set up an Inn that will vary it's price based on your Actor's current Level and multiplying it by a constant of 100 (Level 1 is 100g, level 10 is 1000g, etc.)

NOTE:
I am assuming that your "Protagonist" is the first Actor in your party and your party contains one Actor.
I am not sure what you mean by "the protagonist being locked," but I think I have the gist. Otherwise, restate what you mean so that others may understand what you are looking for.



Anyways... here we go!

INN PRICE BASED ON ACTOR LEVEL TUTORIAL:

1) Add an Event using the "Quick Event Creation", then select: "Inn".
2) Create two Variables: PlayerGold and InnPrice.
3) Add the following Control Variable lines at the top by setting the Variable InnPrice equal to the Level of your Actor and then by multiply InnPrice by 100.
tut1.png


Set the Variable InnPrice equal to the Level of your Actor.
tut6.png


Multiply InnPrice by 100.
tut7.png


4) Set the variable PlayerGold to equal the current Gold of your party.
tut2.png

tut8.png


5) (This step is not necessary to made this function, but this aesthetically show you the price of the Inn when the Event runs.)
Change the Show Text line text to show the Variable Number of InnPrice.
In this example, my InnPrice variable number is #0020. Change to your respective Variable Number.
tut3.png

BONUS: I do not show it here, but if you want to bring up the Gold Menu when this Show Text runs, then add "\$" (not including the quotes) at the end of the text.

6) Change the Conditional Branch line to compare the PlayerGold & the InnPrice. Make sure to make the comparison "greater than or equal to."
tut4.png

tut6.png


7) Change the Change Gold line to subtract the InnPrice.
tut5.png

tut9.png


And that is it! This is a quick and dirty way of changing the price of the Inn based on your Actor's current Level multiplied by a constant of 100. I usually make these sort of things using Common Events, but this is the simple solution. I hope this is what you were looking for, otherwise let me know.

Good Luck!

Original thread: https://forums.rpgmakerweb.com/threads/inn-based-on-protagonists-level.129950/