Advertisement
Guest User

How to Use Scene_PriceInput

a guest
Dec 25th, 2013
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. Scene_PriceInput in Stella Sidus
  2. A scene where the player negotiates and sells collectibles to NPCs, which uses 3 variables: Original, Input and Percent. Original is the original cost of acquiring in the first place (it's not the same as the Selling Price in Shops in Database for flexibility's sake). Input is the amount of gold asked by the player during negotiation. Percent is the percent ratio between Original and Input, which is used as a condition under which the NPC will agree to buy.
  3.  
  4. For example, you have Item A whose ID in database is 5. You picked it up at the cost of 50G. You wanna sell it to an NPC for profits. However, that NPC will only buy it at no more than 120% of the Original Cost. Here's how you should set up the NPC event:
  5.  
  6. http://i.imgur.com/kj2pnnB.png
  7.  
  8. Where:
  9. PriceInput.Input(:i, id) is for determining which item/weapon/armor in the database will be selected. :i is for the Items Tab, :w is for the Weapons tab, and :a is for the Armor tab. id is the ID of said item in its respective tab in the Database.
  10. $scene = Scene_PriceInput.new is to call the Negotiation Scene.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement