Creating a potion that either explodes or makes you "sick"?

● ARCHIVED · READ-ONLY
Started by Little Adventurer 18 posts View original ↗
  1. Okay, so I have a new potion made called Foul Brew. I want it to have a chance of either exploding (made a Common Event for that already which works fine) or a chance of inflicting a disease state I have (such as Fever or Headache). The problem is I don't know 1. How to make it be only a chance of either explosion or sickness and 2. I don't know how to randomize the sickness so it's not the same one every time. Nor if I should make it a variable, a switch, common event, a state...
  2. The way I would go about this scenario is:


    I would make a variable called "Potion".


    In the common event, I would use Control Variables:


    Under "Control Variables" I would set the variable to random 0-3.


    The numbers 1-2 will be randomly selected.


    In a conditional branch, use an if-else branch to decide the following:


    1 would be like your illness and 2 would be your explosion.


    I can explain it in further if you get lost. :)  


    Using this method will also make you a decent slot machine without use of plugins :p
  3. I got ninja'd while finding an example, but that's exactly what I would of said!


    In this video is an example of the method of randomness said above! It also has a way of showing off an explosion effect if necessary!

  4. i have fiddled with randomize so much today, you are in luck xD


    first question is simple!!!


    make a variable at the very beginning of potion consumption or usage,  call it whatever, Variable, Random option , pick 2 numbers ....say 1 and 10


    now for the fun part, make condition branch with else branch!!!


    Condition branch, if variable (the random one) is ...say lower or equal to 4  ...which in this case makes it 40%, potion runs explosion event of yours.


    ELSE BRANCH!!


    60% of poison but you also want that to be random type of poison, so another condition branch like above!!! that will give you 2 options of poisons... you may add more condition branchs for more types of poisons


    wew i didnt notice 2 more people posted, well...the more the merrier!
  5. How's this?


    ...Where'd you two other people come from?!

    Screenshot 2016-03-12 13.57.27.png
  6. Looks fine. If you run into any problems with it, just let me know ;P


    (Also sorry Kloe, I didn't mean to go Ninja.)
  7. that wont give you DIFFERENT sickness everytime, it will give you all of them at once, you need to place more branches for more status effects!


    if you want those 4 illnesses and the explosion you would need 4 condition branchs.. example:


    variable i dont feel well random 0-4  (0-1-2-3-4 are the numbers for conditions)


    if variable == 0


    change state + fever


    else


    if variable ==1


    change state +headache


    else


    if variable == 2


    change state + sore throat


    else


    if variable ==3


    change state +listless


    else


    show animation
  8. Little Adventurer said:
    How's this?


    ...Where'd you two other people come from?!



    Magic teleportation by The Great Question Mages of RMW! (probably)


    Also since it's a question that quite a few people know the answer and it is asked well with a clear title and question. I wish everyone made their topics this way because as you can see, it's effective!


    Edit: MY GOD!? Two people posted while I typed!? How... the ninja energy is over 9000 3
  9. Uh... I got it to inflict my diseases... but it inflicts ALL of them at once. I don't want that. I want it to be just one out of how may I have.
  10. Then you may wish to use more conditional branches and assign more values to the variable (by the looks of it try 0-5)
  11. damn this, i already posted the solution above and you people jump through me XD
  12. Wow, you guys are replying VERY quickly today! 0_0 Usually you're not this fast!
  13. Random is the fruit of life. Everyone jumps at the chance to help someone spread this life.


    If that means helping make a suicidal potion, than we will be happy to do it ^_^
  14. So... much.... Ninjas.... this must be a forum record or something?!
  15. *Drops the microphone and walks away.*


    I do believe we are getting off topic however.


    Have we fixed the issue you were having with the all-in-one state Little?


    (Also I've never broken a record before, I hope you're serious, lol.)
  16. Yep! Thanks so much!


    I wonder if it's possible to have two seperate animations for the brew when used in battle? Like one is the Powerdown 1 (for the sickness) and the other is the explosion (which I used Breath for) depending on whether we got the variable or the else branch.


    Also, speaking of the explosion... it seems that's coming up a lot more than the states. Not bad, but you'd think that the potion would more likely make you sick if you drank it rather than have it go boom in your face. Maybe I should add the explosion to the conditional branch? or switch my variable and else branch around?
  17. you can place animation before state as you did in explosion.


    as for the chances, you can increase them by increasing number but that would mean you need t modify the script, ill try to edit one in this post (rough one not a fancy one though xD)


    variable random 1~ 20  (more chances, each 4 digits is 1 status or explosion)


    if variable <= 4  (<= incase you dont know its lower or equals 4)


    change state + fever


    show animation


    else


    if variable > 4


    if variable <=8


    change state +headache


    show animation


    else


    if variable >8


    if variable <= 12


    change state + sore throat


    show animation


    else


    if variable >12


    if variable <=16


    change state +listless


    show animation


    else


    show animation (this is explosion one)
  18. Thanks so much for your help, guys! I really appreciate it!