prism 2 Posted August 31, 2015 I'm trying to make it so that if Tao Gunka Card is equipped, this status will not provide a bonus. case SC_DELUGE: if( status->current_equip_card_id = 4302 ) val2 = 0; //HP increase* else val2 = val1*3; //HP increase* I tried doing this but it doesn't seem to work. It just gives 0 HP bonus no matter what. Quote Share this post Link to post Share on other sites
0 prism 2 Posted September 1, 2015 I'm using Hercules. case SC_DELUGE: val2 = skill->deluge_eff[val1-1]; //HP increase That's the original code from status.c I changed it to be 3% per level. I was able to get it to work by replacing: if( status->current_equip_card_id = 4302 ) with: if(sd->equip_index[EQI_ARMOR] >= 0 && sd->status.inventory[sd->equip_index[EQI_ARMOR]].card[0] == 4302) Quote Share this post Link to post Share on other sites
0 Garr 117 Posted August 31, 2015 What's your emulator? Because I can't find anything like this in current herc setup. Well, not for deluge, at least. Quote Share this post Link to post Share on other sites
0 thor1009 9 Posted September 1, 2015 The previous one missed a "=" Quote Share this post Link to post Share on other sites
I'm trying to make it so that if Tao Gunka Card is equipped, this status will not provide a bonus.
Share this post
Link to post
Share on other sites