Main Menu
  • Welcome to The RPG Maker Resource Kit.

How do I address shop items?

Started by shintashi, June 17, 2010, 12:06:14 AM

0 Members and 1 Guest are viewing this topic.

shintashi

I've got an idea to temporarily add "profit" to the base item prices depending on what kind of shop keeper is being used.

The basic method would be temporarily jacking the price of specific items (script),
then having the prices reset after the shop event closes (more script)


the intermediate method would be a "wholesale" +/* "markup" = "retail"
with 'markup being a default of like 0, and with every transaction completed adding "markup" to a variable
used for determining how much gold you might find if you can unlock the shopkeeper's treasure chest

Unfortunately, I can't figure out what the syntax for addressing items is.

I tried things like
p $item
p $item[1]
p $game_party.items

but I'm getting no where fast.

cozziekuns

Items can be referenced through $data_items.
Weapons can be referenced through $data_weapons.
Armours can be referenced through $data_armors.

tSwitch

shintashi, I truly advise using the in game help and searching around that for information, you literally could have found this by searching for 'items' 'armor' and 'weapons'.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

shintashi

#3
edit: my bad

this thread was intended for XP. I have difficulty seeing the XP/VX difference because of a partial dyslexia.

the answer is correct however.

tSwitch

I don't understand where VX came into things but..yeah, there's help for XP.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

shintashi

Quote from: NAMKCOR on June 17, 2010, 01:45:40 AM
I don't understand where VX came into things but..yeah, there's help for XP.

$data_items isn't actually in my help file, but it's in some of the lines of the script editor. Because of all the other 'item' terms, like 'draw_item' and 'item.scope' I couldn't figure out the "$data_" part.

Mr_Wiggles

there is a script that does something like this already...
http://www.hbgames.org/forums/viewtopic.php?f=11&t=6051

hope it helps you out.
[spoiler]
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com

[/spoiler]