Remove Medicated Effect

Post Reply
fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Remove Medicated Effect

Post by fallen45078 » Thu Feb 05, 2015 8:20 pm

How would one remove the medicated effect from foods like the Red Curry Bun?

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Remove Medicated Effect

Post by whasf » Thu Feb 05, 2015 11:10 pm

You can't remove the medicated effect from medicines. You can remove the food effect with an antacid, get killed, etc.. See http://wiki.ffxiclopedia.org/wiki/Food_(Status_Effect)
-- Whasf

fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Re: Remove Medicated Effect

Post by fallen45078 » Fri Feb 06, 2015 9:40 am

No, I mean from a scripting method. I have manually removed the medicated effect from medicines by adjusting each individual medicine. Now I am wondering about the food, but would rather not have to change each instance.

User avatar
TeoTwawki
Developer
Posts: 527
Joined: Mon Jul 15, 2013 9:50 pm

Re: Remove Medicated Effect

Post by TeoTwawki » Fri Feb 06, 2015 10:46 pm

All food is the same status effect, can't normally have more than one of it. The stats are set in the item script instead of a script for EFFECT_FOOD and it find which stats to use by looking at the subID to match it with an itemID. If you remove the check for food effects on item use you'd still have the effect already present so you'd have to either make food effect over-wright itself or or allow multiple copies (but multiple food effects would be nuts, even without any technical difficulties).
Hi, I run The Demiurge server.


Image
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding
PLS USE [ code ] CODE TAGS [ /code ] WHEN POSTING CODE
DO NOT PRIVATE MESSAGE ME ABOUT BUGS

fallen45078
Posts: 33
Joined: Wed Dec 03, 2014 2:17 pm

Re: Remove Medicated Effect

Post by fallen45078 » Sun Feb 08, 2015 1:24 pm

That's what I was looking for. Thanks!

Post Reply