Jump to content
  • 0

A little help with skills


bodibastos

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   0
  • Joined:  10/13/12
  • Last Seen:  

I'd like to crate two passive skills that modify the skill Bash, but I don't know where to modify the source. I've already created the skills themselves, with sprites, descriptions and whatnot, but they have no effect.

 

The first one, Battle Heal, goes up to level 5 and makes Bash heal the user for SkillLv*10% of the damage done.

 

The second one, Precise Hit, also goes up to level 5 and makes Bash ignore SkillLv*10% of the target's defense.

 

Can anyone help me? Any tip would be appreciated. Thanks!



I figured out I could do something like what is done for Fatal Blow:



        if( sd && skilllv > 5 && pc_checkskill(sd,SM_FATALBLOW)>0 ){
            //TODO: How much % per base level it actually is?
            sc_start(bl,SC_STUN,(5*(skilllv-5)+(int)sd->status.base_level/10),
                skilllv,skill_get_time2(SM_FATALBLOW,skilllv));
        }

But how would I go about restoring HP or ignoring defense instead of adding a stun chance?
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...