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.
DreamX_RandomPrefixesSuffixes: How to make variable prices in percentage?
● ARCHIVED · READ-ONLY
-
-
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.