Save-Point
FF7s Hyper/Tranquilizer Item Script Petition - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: FF7s Hyper/Tranquilizer Item Script Petition (/thread-4686.html)



FF7s Hyper/Tranquilizer Item Script Petition - Iqus - 06-17-2013

Hi people! I'm looking for, in my opinion, a rather easy script.

For those who have not played FF7, there were two items called Hyper and Tranquilizer that were related to two different status called Sadness and Fury.

The thing was, Hyper cured Sadness and Tranquilizer cured Fury, HOWEVER, if you where to use a Hyper on a character who doesn't have Sadness, it would provoke Fury on him, and all the way around with the Tranquilizer.

So, in the item database by default you can make a Hyper to cure Sadness and cause Fury at the same time, but what I want is for the player to spend a Hyper to cure Sadness and having to use another one if you want the character to be in Fury state, and the same with the Tranquilizer. I thing it can be very easy to make, doesn't it?

Hope I explained myself, thanks beforehand =)


RE: FF7s Hyper/Tranquilizer Item Script Petition - MechanicalPen - 06-17-2013

The script I wrote, Tiered States can do this, if I understood what you want correctly!

The tiers in your case would be: Sadness, dummy, Hyper. The dummy state represents "neither sadness nor hyper" it should be a state that does nothing and has a rating of 0.

And you'd have to set up the hash something like:
Code:
Tiered_States = {
                  hyper_id => [sadness_id, dummy_id, hyper_id],
                  sadness_id => [hyper_id, dummy_id, sadness_id]
                  }
replace the ids with the ids of your states, obviously~


RE: FF7s Hyper/Tranquilizer Item Script Petition - Iqus - 06-18-2013

Worked perfectly! =) Thanks a lot!