MZ Create Inn Scene Display Gold

So, is there a way to display an amount in a text box for spending the night at an Inn, that is dependent on the number of characters in your party?
Example:
1 character would display a 3 in the text box
2 characters would display a 6 in the text box
3 characters would display a 9 in the text box
4 characters would display a 12 in the text box
Using \$ will tell the game to display your available gold.
Not without a plugin, but there are several that would do the trick.

http://www.yanfly.moe/wiki/Visual_Text_Window_VisuStella_MZ is one example.
Since you can show variables in message boxes, the plug-in-less method would be something like:

Get the number of party members
Multiply this by 3 gold
Put this in a variable
Show the variable in the inn keepers text bubble
Not without a plugin, but there are several that would do the trick.

http://www.yanfly.moe/wiki/Visual_Text_Window_VisuStella_MZ is one example.
Well yeah I have that plugin available.
1690730890455.png

So how would I go about setting this up?
Since you can show variables in message boxes, the plug-in-less method would be something like:

Get the number of party members
Multiply this by 3 gold
Put this in a variable
Show the variable in the inn keepers text bubble
Well that works.
Well yeah I have that plugin available.
View attachment 271552
So how would I go about setting this up?
1690732320193.png

Like this, basically.
Not without a plugin, but there are several that would do the trick.

http://www.yanfly.moe/wiki/Visual_Text_Window_VisuStella_MZ is one example.
Huh? Maybe I understand the question wrong, but why is a plugin needed?
After doing the Var1 = members * 3g, you can simply show the amount like \v[1], right?
Huh? Maybe I understand the question wrong, but why is a plugin needed?
After doing the Var1 = members * 3g, you can simply show the amount like \v[1], right?
It's for the window that shows it. This is for an approach where the window with the variable being displayed is separate from the message window.
Oh... Was that the intention? Wouldn't it be much easier to just have an option saying:
"Rent room (\v[1]\g)"?
1690733867980.png

Yeah first a variable for the number of party members, then it multiplies that variable by a set number and another variable for party current gold.
Then an If check to see if variable 3 (party gold) ≥ variable two (inn cost), else it displays you don't have enough to stay.
Then an If check to see if variable 3 (inn cost) ≥ variable two (party current gold), else it displays you don't have enough to stay.
The other way around. Gold should be same as or larger than the cost.
The other way around. Gold should be same as or larger than the cost.
Just a typo, it's done correctly in the formula.
else it displays you don't have enough to stay.
A little derailing, but might also be a thought to have the inn keeper letting you stay for free if you have no money.

Note that if you use something like Visustella Event and Movement Core, you can greatly shortcut the movement route scripting (you can just say “move to x y”). See my edited answer in your other thread for more detail.
A little derailing, but might also be a thought to have the inn keeper letting you stay for free if you have no money.

Note that if you use something like Visustella Event and Movement Core, you can greatly shortcut the movement route scripting (you can just say “move to x y”). See my edited answer in your other thread for more detail.

Yeah, I tested it with Visustella Event and Movement Core as well and unfortunately commands to 0 override movements of other characters movement. I tried four separate events with wait for completion checked, still doesn't move how it's programmed.
I tried four separate events with wait for completion checked, still doesn't move how it's programmed.
It's better to do it all in a single event. If you could post (probably better in the other thread) screenshots of your attempt I might be able to recreate in my project and find out why it doesn't work?
Yeah, I tested it with Visustella Event and Movement Core as well and unfortunately commands to 0 override movements of other characters movement. I tried four separate events with wait for completion checked, still doesn't move how it's programmed.

Single map test project, two plugins event north of the player's starting position.
In the interest of keeping the topics separate, I've posted the answer in the other thread, here.

Original thread: https://forums.rpgmakerweb.com/threads/create-inn-scene-display-gold.159865/