Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Loot Collectors Eventing?

Sinnistar

Praised Adventurer
So I'm having a difficult time trying to figure this one out on my own. I need to make an event that will buy certain items from the player and pay them based on the amount they player had in their inventory. I was thinking it would prolly have to be variable based, but I really just can't figure out how to get this going.

It would need to be something like, "If player has 13 apples in inventory and NPC wants all of them and is paying 5g each than pay based on the number sold to them". I can't do it via a shop menu and I don't want to change the default sell price since the shopkeepers are meant to pay less than collectors. So like a fur pelt is based at 3g in my game and I want a collector to pay 8g per instead if the player seeks them out for it.

Anyone know how to set something like this up? Once I have the basic idea I can recreate it with all the items needed. (There's gonna be a lot of collectors lol)
 

Cunechan

∠( ᐛ 」∠)_
Soo I've been thinking about this now for a time and tried it myself.(Sorry for crappy half-translated rmmv XD)
First I mada a conditional branch (does player have item x ?) then I set on a variable ( variable"item x" = game data> item x) then you can make the limits of the prices, as in for 1-3x item x you get y amount of money or whatever. Here I chose item is somewhere between 1-3. Then you can set the amount of money in a different variable ("Price Item x"). Then "variable 1" x "variable 2" and show text with inserted variable 2. Wanna trade? Yes/No. The rest is self explaining I guess. The most of it is selfexplaining. Ehhhhh lol XD Well you can copy and paste it as often as you want and stuff. Hope that's what you were looking for. If you're even still looking for this XD
 

Zentarus

Villager
Xy$
0.00
If you associate the event character with the variable as a basic cause and effect programing then you may want the price the collected pays to increase or decrease due to the amount of the item the character is holding basicly for every amount over one of the said item increase or decrease the price by another associated variable
 
Top