AVA Community - RPG Maker VX & Ace Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome        IRC IRC  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
kzar
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
A.v.a.
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
LadyLeilani
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
BlackMuffin
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Kalez
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Dan
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
xShaddy
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Hero
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Kaptain J
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Amycha
Custom currency merchant. Expanded loot table. Vote_lcapCustom currency merchant. Expanded loot table. Voting_barCustom currency merchant. Expanded loot table. Vote_rcap 
Latest topics
» ASTM A6 A6M
Custom currency merchant. Expanded loot table. Emptyby haralav Sun Feb 16, 2014 12:36 am

» Powered By SMF 2.0 Free Boxing Workout Routine
Custom currency merchant. Expanded loot table. Emptyby haralav Sat Feb 15, 2014 5:35 am

» Inazuma Eleven Strikers PC.rar.rar
Custom currency merchant. Expanded loot table. Emptyby haralav Fri Feb 14, 2014 9:21 pm

» Codigo Alimentario EspaNol Y Disposiciones Complementarias 6 Ed .
Custom currency merchant. Expanded loot table. Emptyby haralav Fri Feb 14, 2014 7:40 pm

» Shinwa Ep 1 : The Sacred Stone Kibo
Custom currency merchant. Expanded loot table. Emptyby hkoz Fri Jul 19, 2013 9:45 am

Affiliates

-----

-----
free forum

Share
 

 Custom currency merchant. Expanded loot table.

View previous topic View next topic Go down 
AuthorMessage
Orisius
Newbie
Orisius
Newbie


Posts : 2
Join date : 2012-06-23
Age : 36
Skill : General Hobbyist

Custom currency merchant. Expanded loot table. Empty
PostSubject: Custom currency merchant. Expanded loot table.   Custom currency merchant. Expanded loot table. EmptySat Jun 23, 2012 8:28 pm

I haven't had much experience with designing events outside the GUI and I was wondering if there was a way to achieve this through the GUI or if you could kindly point me in the direction where I could learn to do this with custom scripts.


Thanks!


What I'm trying to achieve is having a basic merchant screen while being able to use inventory items as currency instead of gold (or whatever you might call it).

Also a side note, is there a way to expand an enemies loot table through custom script?
Back to top Go down
kzar
Member
kzar
Member


Posts : 64
Join date : 2012-04-18
Age : 28
Gender : Male
Location : [s]Easrth[/s] DAH MOON!!!
Skill : Writer

Custom currency merchant. Expanded loot table. Empty
PostSubject: Re: Custom currency merchant. Expanded loot table.   Custom currency merchant. Expanded loot table. EmptyMon Jun 25, 2012 1:41 am

This can be achieved fairly easily. I'll try to explain it.
1) Create the event that will act as your "shop."
2) Text saying "Hello, and welcome...blahblahblah... What do you want to buy?"
3) Display Chices, "Item 1, Item 2, Item 3, More" (If you want 4 items, replace more with 4)
4) When 1: Text: "You want Item 1? It will cost 3 potions!"
5) Show Choices, "Buy, Do not Buy"
6) When Buy:
Variable Operation: (this is where XP,VX and VXA difer slightly) Set variable 1 to the number of potions present.
VX: Control Variables, Set, Item: 001: Potion in Inventory
VXA: Variable Operation: Substitute, Game Data, Item, 001:Potion is Present
7) Conditional Branch: Variable 0001 is equal to or greater than 3 (since Item 1 costs 3 potions)
Be sure to check "Set handling when conditions do not apply"
8.) When conditions met, Add Item 1, Remove Potion x3
9) When not met, Text: "You dont have enough Potions"

Repeat this process for all the items.

It is VERY complicated to some people but once you gain experience in how RPGMaker works, its fairly easy to do just about anything. If you still don't understand, I can record myself doing it on video and post it here so you can see it better. =D
Back to top Go down
Orisius
Newbie
Orisius
Newbie


Posts : 2
Join date : 2012-06-23
Age : 36
Skill : General Hobbyist

Custom currency merchant. Expanded loot table. Empty
PostSubject: Re: Custom currency merchant. Expanded loot table.   Custom currency merchant. Expanded loot table. EmptyMon Jun 25, 2012 12:55 pm

That GUI thing there was what i was trying to avoid due to not being able to see item stats but i guess i could make a pretty complicated menu system to do that too.

I usually do that same event almost but i use a lot of labels instead of variables.


EDIT: Forgot to mention i was using VXA in case that means anything.
Back to top Go down
Sponsored content





Custom currency merchant. Expanded loot table. Empty
PostSubject: Re: Custom currency merchant. Expanded loot table.   Custom currency merchant. Expanded loot table. Empty

Back to top Go down
 

Custom currency merchant. Expanded loot table.

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
AVA Community - RPG Maker VX & Ace Forums :: User Contribution :: Help & Support :: Script Requests/Support-