Narch

Veteran
Veteran
Joined
Jan 13, 2017
Messages
68
Reaction score
10
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
68
Reaction score
10
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

since all my maps are hand drawn... I admit, I super envy those who can make the tileset's work. I'm garbage at mapping, but slightly less bad at just drawing my own areas. plus it's easier to draw my own sprites than edit others to look like my characters.
Guys, I made a trailer! And, I also launched the Steam page! If you would like to support the game, please Wishlist it :ahappy: ->
working on some tilesets _ノ乙(、ン、)_

CIBl8xT.png


Oq8WKHX.png
aww man, color hex code #C4C4C4 doesn't work for the tint value in this scene I need something darker, which stinks just because I liked that one it was my favorite plastic explosive three times...#696969 (nice) should work better (WHY IS MY BRAIN LIKE THIS)
Tell it to me straight, doc. If I've been trying to piece together a "shorter" game to learn stuff outside of game jams... am I just running away from my WIP? :v

Forum statistics

Threads
117,284
Messages
1,106,127
Members
153,467
Latest member
Kip_
Top