Jump to content
Sign in to follow this  
Takeo212

Inn's Charging Per Party Member Help

Recommended Posts

Note: I'm using RPG Maker MV so I need something compatable for this~ Thankies~

 

 

Hey guys~

 

A feature I'm adding to my game is Inn's - that place everyone spams to get cheap healing when they wanna grind, yadda yadda.

I wanted to add a little extra to that though. I always find it weird that a room always cost the same no matter how many party members you can on you.

 

I am adding the feature that the Inn itself will have a charge (say 5 gold for the first one), and if you have 3 party members, I want that to be 5G x 3.

 

I was trying to make variables and then use those - and although I got the variables set up for Party Members, I'm not sure hot o go about doing the math for it.

 

Any ideas on how to implement this?

Thank you for any help/feedback in advance ^^

 

~Takeo

 

EDIT

I also need to be able to add that number as a conditional branch to check for how much money the party actually has - to check if they can afford the stay.

Edited by Takeo212

Share this post


Link to post
Share on other sites

In a script call event:

 

h = $game_variables

q = $game_party.members.count

h[x] = q * y

 

where

x  = variable id

y = inn cost per member

 

This script call outputs the overall cost into variable x.

  • Like 2

Share this post


Link to post
Share on other sites

Oh, I'm using MV. Would this scriptcall still work for that too?

(since they use different formatting RGSS/JS- idk if the script is affected though)

 

Thank you though, I'll test it as soon as I can and let ya know if it worked ^^

Share this post


Link to post
Share on other sites

Whoops, assumed VX Ace. I can't be sure if it will work then...

Share this post


Link to post
Share on other sites

No worries, it was my own fault for not actually stating what program. I'll update that now!

It doesn't look to complex so hopfully it'll work, so I'll give it a try still since I'm home now~

 

EDIT

Just realized I have no way to input this variable as a conditional branch to work how I need it.

 

If that scriptcall works, it sets the amount to a variable,

but I need that variable to be included as an amount of money, but Gold can't be made into a variable amount it seems. Only a constant :/

 

I hope I don't have to request another plugin for this D:

Edited by Takeo212

Share this post


Link to post
Share on other sites

Ahh, thank you very much Adventurer_inc!

I had the variables correctly, but I had the script wrong.

 

Thank you very much for your help, it works perfectly now~

 

This can be closed now thanks to Adventurer_inc's help~

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted