Jump to content
  • 0
Sign in to follow this  
prism

Get Equipped Card

Question

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.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

What's your emulator? Because I can't find anything like this in current herc setup. Well, not for deluge, at least.

Share this post


Link to post
Share on other sites
  • 0

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)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.