+ Takeo212 1,079 Posted April 27, 2016 (edited) 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 April 28, 2016 by Takeo212 Share this post Link to post Share on other sites
AxD141 6 Posted April 27, 2016 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. 2 Share this post Link to post Share on other sites
+ Takeo212 1,079 Posted April 28, 2016 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
AxD141 6 Posted April 28, 2016 Whoops, assumed VX Ace. I can't be sure if it will work then... Share this post Link to post Share on other sites
+ Takeo212 1,079 Posted April 28, 2016 (edited) 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 April 28, 2016 by Takeo212 Share this post Link to post Share on other sites
Adventurer_inc. 9 Posted April 29, 2016 Most of the stuff you are looking for are built-in. Gold Compared to a Variable, however, is not. 1 Share this post Link to post Share on other sites
+ Takeo212 1,079 Posted April 29, 2016 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