Hi!
Using these plugins:
http://www.yanfly.moe/wiki/Item_Core_(YEP)
http://www.yanfly.moe/wiki/Attachable_Augments_(YEP)
I want to make instanced items with random Augment slots. For example, I want the base item to have two Orb slots, with a chance of adding a third Orb slot.
I figured I need to use the <On Creation Eval> tags to do this. Now my idea was to have the Augment generation happen in these tags. Like...
The problem is: I don't know how to write this in the RPGmaker(My head hurts even when I try to understand the math.random function...) nor do I know if this even would work!
Could anyone have a look at this, and help me with the correct input?
Thanks a bunch!!
Using these plugins:
http://www.yanfly.moe/wiki/Item_Core_(YEP)
http://www.yanfly.moe/wiki/Attachable_Augments_(YEP)
I want to make instanced items with random Augment slots. For example, I want the base item to have two Orb slots, with a chance of adding a third Orb slot.
I figured I need to use the <On Creation Eval> tags to do this. Now my idea was to have the Augment generation happen in these tags. Like...
Code:
<On Creation Eval>
- Random number between 1 and 10 (Math.random(0,10);
- If Math.random = 1
<Augment Slots>
Orb
Orb
Orb
</Augment Slots>
- Else
<Augment Slots>
Orb
Orb
</Augment Slots>
</On Creation Eval>
The problem is: I don't know how to write this in the RPGmaker(My head hurts even when I try to understand the math.random function...) nor do I know if this even would work!
Could anyone have a look at this, and help me with the correct input?
Thanks a bunch!!