Posted: 20th August 2004 17:17
|
|
![]() Posts: 275 Joined: 27/2/2004 Awards: ![]() ![]() ![]() |
... not to stop smoking but to change the priority of inflicted/immunity status in FFVI.
In FFVI, when you equip the Cursed Shield, it inflicts a lot of ailments. If you equip a ribbon and Safety Bit, you're okay. That's too easy. That's how I want it: If you equip a Cursed Shield, there's no way you can remove these ailments. It's because I wanna do a hack in which a lot of equipment inflicts status but give big power/magic... For example, the "Berserker Ring", which obviously inflicts berserk but also give a lot of strenght and a little magic protection (I based it on the rage ability in D&D). If the wearer also equips Ribbon, the berserker ring just give advantages and no disadvantages. It would surely increase a little the difficulty of the game, and that's what I want. ![]() So, I want to priorize status inflicted by equipement... and equipment ONLY. Otherwise, it will surely cause a lot of bugs... If it's too complicated, just say it. I don't wanna give you a lot of work for nothing ![]() Yo! Mods! I don't know where to put this request so I took a guest. Do it! *Goonies, you have to be polite if you want that someone do it.* Do it, PLEASE ![]() Moderator Edit Goonies, what happened there? I found this thread all the way in Your Creations >_> FFVI stuff goes in FFVI. - Elena99 Edit Sorry, Elena. ![]() ![]() This post has been edited by Goonies on 21st August 2004 16:01 -------------------- «À l'aventure compagnons, je suis parti vers l'horizon! J'aurais mieux fait de rester au lit, ce donjon, il est pourri!» - Pen of Chaos |
Post #56940
|
Posted: 21st August 2004 09:39
|
|
![]() Posts: 139 Joined: 25/1/2004 Awards: ![]() ![]() ![]() |
Ok, let me think a sec...
Each status has two bytes associated with it: One determines if you have it, and the other determines if you can change it. Actually, it's more complicated than that, but I'm simplifying it here to sort out my thoughts. ![]() The first one is called THE status byte, and the other one is called the BLOCK status byte. If the bit for the status is one, you have the status. If the block status bit is on, then the status cannot be changed. So, if the status is off and the block status is on, then you are "immune" to that status. If the status is on and the block status is on, you have "permanent" status. If the status is on and the block status is off, you have the status but it may be removed (via spell, item, time... whatever). Finally, if the status is of and the block status is off, you don't have the status but it could be inflicted on you (via spell, item, attack... whatever). Again, this is over-simplified, as there are a few caveats that I will not go into here. So what you want is for the code to prefer a status that is permanently ON versus a status that is permanently OFF, if it has to choose? Now I've never seen the code that handles that, but obviously it works the other way normally. This is probably doable, just give (the hacker community) some time. ![]() -------------------- Food is like magic in my ears. - Djibriel Ogopogo lives. |
Post #57049
|
Posted: 22nd August 2004 10:25
|
|
![]() Posts: 154 Joined: 28/7/2004 Awards: ![]() ![]() ![]() |
Over simplified solution:
For the Berserker ring, have it set the STATUS byte to 1 and the BLOCK byte to 0. Now when the ribbon is equipped it will override that and set the STATUS to 0 and the BLOCK to 1. Since berserk has no duration and lasts until the battle is over (or cured via spell/rippler), in 99% of cases it won't be deactivated. Edit: it shouldn't matter what order the items are checked in, since if the ring is checked first, the ribbon will apply itself after, and if the ribbon is applied first, the berserk ring won't be able to override the block status. This post has been edited by Keith on 22nd August 2004 10:26 |
Post #57192
|
Posted: 22nd August 2004 11:09
|
|
![]() Posts: 1,394 Joined: 13/3/2004 Awards: ![]() ![]() ![]() ![]() ![]() |
Forgive me if I misunderstood you:
FF VI works with two-way immunities. For instance, you can't deactivate the Safe from the Guard Ring because it also sets immunity to Safe. The Berserker Ring should set Bserk and automatically make it immune to it, but the Ribbon prevents Berserk from activating and still makes the wearer immune, just like the Ring would be itself. -------------------- |
Post #57193
|