RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How do I address shop items?

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 82
We learn by living...
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.

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Items can be referenced through $data_items.
Weapons can be referenced through $data_weapons.
Armours can be referenced through $data_armors.

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
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

***
Rep:
Level 82
We learn by living...
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.
« Last Edit: June 17, 2010, 01:41:03 AM by shintashi »

********
Hungry
Rep:
Level 96
Mawbeast
2013 Best ArtistParticipant - GIAW 11Secret Santa 2013 ParticipantFor the great victory in the Breakfast War.2012 Best Game Creator (Non-RM Programs)~Bronze - GIAW 9Project of the Month winner for December 2009Project of the Month winner for August 20082011 Best Game Creator (Non RM)Gold - GIAW Halloween
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

***
Rep:
Level 82
We learn by living...
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.

****
Rep:
Level 83
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 for:
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