Creating a shop that takes special resources(items) instead of gold.

Status
Not open for further replies.

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
I'm not sure how I'd go about setting this up or if I'd need a custom script for it. To clarify, what I'm looking to do is to have a shop where you buy items/equipment with special resource items as the currency(so for example item 001: secret gems) of varying amounts(ex. elixer: 1 gem, sword: 5 gems, and so on), ideally with them having some kind of listing rather than just the choices command. I've considered making the shop have the items displayed physically in tiles which might work ok, but isn't really what I'm looking for. Anyone have any ideas how to go about making such a thing? Thanks.

edit: Maybe one of the 'crafting' systems..?
 
Last edited by a moderator:

ShinGamix

DS Style 4Ever!
Veteran
Joined
Mar 18, 2012
Messages
3,905
Reaction score
451
First Language
April Fools
Primarily Uses
N/A
I think that could be evented kinda easily as a trade shop or trading post.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This would be pretty easy to event.

Do a Show Choices to give the player the option to select what they want to buy. Optionally include in the choice text what the currency is and how many it will cost. In the WHEN block, use a Control Variables to count how many of that currency item the player has available. Then do a Conditional Branch to check if it's >= how many they need. If they have enough give them the new item, take away the correct number of the currency item, and process the sale. If they don't have enough, show a message.

Something like this:

Code:
Control Variables [0001: Gems in Inventory] = [Gems] in Inventory (you can do it once, here, if everything uses the same "currency")Show Text: What would you like to trade today?Show Choices: Elixir (1 Gem), Sword (5 Gems)[When Elixir]  Conditional Branch: Variable [0001: Gems in Inventory] >= 1    Change Items: Gems -= 1    Change Items: Elixir += 1    Play SE: Shop    Show Text: Here you go.  Come back again.  Else    Show Text: Sorry, you don't have enough gems for that.  Branch End[When Sword]  Conditional Branch: Variable [0001: Gems in Inventory] >= 5    Change Items: Gems -= 5    Change Weapons: Sword += 1    Play SE: Shop    Show Text: Here you go.  Come back again.  Else    Show Text: Sorry, you don't have enough gems for that.  Branch EndBranch End
 

Shion Kreth

White Knight
Veteran
Joined
Jan 28, 2013
Messages
281
Reaction score
47
First Language
English
Primarily Uses
This would be pretty easy to event.

Do a Show Choices to give the player the option to select what they want to buy. Optionally include in the choice text what the currency is and how many it will cost. In the WHEN block, use a Control Variables to count how many of that currency item the player has available. Then do a Conditional Branch to check if it's >= how many they need. If they have enough give them the new item, take away the correct number of the currency item, and process the sale. If they don't have enough, show a message.

Something like this:

Control Variables [0001: Gems in Inventory] = [Gems] in Inventory (you can do it once, here, if everything uses the same "currency")Show Text: What would you like to trade today?Show Choices: Elixir (1 Gem), Sword (5 Gems)[When Elixir] Conditional Branch: Variable [0001: Gems in Inventory] >= 1 Change Items: Gems -= 1 Change Items: Elixir += 1 Play SE: Shop Show Text: Here you go. Come back again. Else Show Text: Sorry, you don't have enough gems for that. Branch End[When Sword] Conditional Branch: Variable [0001: Gems in Inventory] >= 5 Change Items: Gems -= 5 Change Weapons: Sword += 1 Play SE: Shop Show Text: Here you go. Come back again. Else Show Text: Sorry, you don't have enough gems for that. Branch EndBranch End
Thanks for the input; that just feels a little old school to me though; the player wouldn't even know what they're buying.

So far it looks like the tactics ogre psp crafting system might be a close approximation; just having a single material type being whatever resource, but it's a little heavy-handed for what I'm looking for, and would still have a gold count rather than whatever resource as a currency like I'd like. It didn't seem like something complicated to me, but it looks like I may need to get something custom scripted if I want to be picky about it. 
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,567
Latest member
sashalag
Top