DreamX_RandomPrefixesSuffixes: How to make variable prices in percentage?

Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
66
Reaction score
9
First Language
French
Primarily Uses
Hi everyone.

I'm using the DreamX_RandomPrefixesSuffixes plugin to generate random suffixes for my items.

Let's say I have 3 categories; Common/Rare/Epic.
I'd like the Common items to be sold at (base price - 50%),
Rare items to be sold at (base price )
Epic items to be sold at (base price + 50%)

Any idea on how I can do this in the notetags?

Thank you.
 

Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
66
Reaction score
9
First Language
French
Primarily Uses
Ok I found a solution, I'm posting it if it can help someone.

In the corresponding category, I use this piece of code

<Prefix Suffix Effect>
newItem.price = baseItem.price * (50/ 100);
</Prefix Suffix Effect>

newItem refers to the random item that will be generated, and baseItem to the default item in MV database.
 

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

Latest Threads

Latest Profile Posts

Ok... so working on the official game guide for my game and its more than 150 pages...... wow. Well, I hope it will help a few players out.
RPG Maker Games Critique with Studio Blue, Episode 12: Amneron's Legacy starts now! Watch on Youtube and join the chat as we explore the world of Ellis!
Lost track of a huge brazilian wandering spider inside my house. In other news, I'm moving again.

Currently working on the second protagonist's story and her companion, making good progress. But I am looking forward to return to my other protagonist and continue his story and have him joined by a new companion. :)
mlogan wrote on alltheyuriz's profile.
Please be aware that our Status rules ask members not to make more than 2 status updates in 24 hours.

Forum statistics

Threads
105,475
Messages
1,013,955
Members
137,114
Latest member
brenadjnendad
Top