My game is called Death's Glance. It's set in a world of magic. So, guns and technology aren't needed. Thanks to magic, the development of technology is much slower, meaning 100 years after Medieval Times ended for us, the era of the sword and of the shield is still thriving. Monsters have many resources within their bodies, and only those so inclined take up alchemy.
I'm thinking monsters could drop items (already know how to do that) that have a positive effect, bt may also inflict a negative one.
For instance, Green Goo is dropped by a Slime, and you can eat it to heal yourself by 50 HP. OR, it might poison you. I have no idea how to make an item do that.
Easiest way - make the item trigger a Common Event, and make the Common Event do the 50/50 roll, and subsequent consequences.
Unfortunately, I can't help with the custom formula for that item, but I would like to say that you should think again about whether you really want stuff like that. I imagine it being extremely frustrating when I'm so desperate that I use a consumable (you normally use skills, right? Because consumables are limited) and then not only does it not work, it even works AGAINST me.
You call the common event via the features. 🙂 Not via formula.
I'm pretty sure the common event runs after the skill has been used. 🙂
That's what I was thinking. I'd still have the event run at the beginning of the battle to keep the numbers circulating.
Your screenshot is wrong. What you did was set 3 different variables to 0. What you need to do is set the variable to a random number between 1-3.
When you open the control variables event, the following options should be chosen...
Variable: Single
Operation: Set
Operand: Random: 1~3
Are you using Conditional Branches? If so, use the "Else" branch instead of a new Conditional Branch.
your going to need to set a variable to the item user then set effect to variable but i am unable to help you with the variable part sorry
Under the Items tab of the Database, can you not just use 'Features', add the state "Poison", then set the odds to "25%" in the bit underneath? Or is there part of this scenario that I'm not grasping.
Ah, yes. I can't believe I didn't think to just put an add_state in the else block. Use Eat's solution above.