Jump to content
  • 0

Modify an active skill to a passive skill


Faust

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

Hello there,

I'm looking for some help in order to modify an existing skill from active to passive. I successfully added super novice spirit to super novice class (just not in the right panel, not sure how to fix that neither) but i would like to turn it into a passive skill rather than a active skill. Could anyone tell me which file i have to edit? Nothing that i changed in skill_db.txt, skill_db.yml, skill_tree.txt helped in that regard.

Thanks

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

2 hours ago, Faust said:

Hello there,

I'm looking for some help in order to modify an existing skill from active to passive. I successfully added super novice spirit to super novice class (just not in the right panel, not sure how to fix that neither) but i would like to turn it into a passive skill rather than a active skill. Could anyone tell me which file i have to edit? Nothing that i changed in skill_db.txt, skill_db.yml, skill_tree.txt helped in that regard.

Thanks

 

Change it in skilldb.yml

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

20 hours ago, Chaos92 said:

Change it in skilldb.yml

Hi, can you give me more precision about the thing to change it skill_db.yml? I tried to make some changes that didn't have effect, so I guess that I didn't find the part to change to make it passive.

 

Thanks

Edited by Faust
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

1 hour ago, Faust said:

Hi, can you give me more precision about the thing to change it skill_db.yml? I tried to make some changes that didn't have effect, so I guess that I didn't find the part to change to make it passive.

 

Thanks

#   TargetType                Skill target type. (Default: Passive)

Change the TargetType part to Passive.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

10 hours ago, Chaos92 said:

#   TargetType                Skill target type. (Default: Passive)

Change the TargetType part to Passive.

Unfortunately it doesn't seem to do anything, indeed if i click on it nothing happen, but the effect aren't applied anymore (i can't use 4th level weapons anymore).

 

image.thumb.png.7de522381c28df47e07b7b927f2f3b5d.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

22 minutes ago, Faust said:

Unfortunately it doesn't seem to do anything, indeed if i click on it nothing happen, but the effect aren't applied anymore (i can't use 4th level weapons anymore).

 

image.thumb.png.7de522381c28df47e07b7b927f2f3b5d.png

I dont understand.  You said u want to modify from active to passive. If the skill already passive, you cannot activate it or place it at hotkeys.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

3 hours ago, Chaos92 said:

I dont understand.  You said u want to modify from active to passive. If the skill already passive, you cannot activate it or place it at hotkeys.

Well what I mean by passive is to act like a passive skill, currently it is an active skill that grants attributes when it is activated, I wanted it to act as a passive skill similarly to Increase HP Recovery passive skill, so as long you attribute skill points to it, its features are permanently attributed, no need to cast the spell.

Edited by Faust
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  10/24/21
  • Last Seen:  

So actually Passive skills are simply skills that can't be activated but learned, you need to edit the right file that detects if the skills has been learned and then apply bonus on that basis, here the skill i made using pc.cpp:

 

    //SUPERNOVICE LINK GIVES PASSIVE ATTRIBUTES // Put before SC_STRIPWEAPON
    if (pc_checkskill(sd, SN_MASTERY) > 0) {
        //Spirit of Super Novice equip bonuses. [Skotlex]
        if (item && (item->equip & (EQP_HELM | EQP_ARMOR | EQP_SHIELD | EQP_GARMENT | EQP_SHOES | EQP_ACC | EQP_ARMS))) {
            return ITEM_EQUIP_ACK_OK;
        }
        if (item->equip & EQP_ARMS && item->type == IT_WEAPON)
            switch (item->subtype) { //In weapons, the look determines type of weapon.
            case W_DAGGER: //All level 4 - Daggers
            case W_1HSWORD: //All level 4 - 1H Swords
            case W_1HAXE: //All level 4 - 1H Axes
            case W_MACE: //All level 4 - 1H Maces
            case W_STAFF: //All level 4 - 1H Staves
            case W_2HSTAFF: //All level 4 - 2H Staves
                return ITEM_EQUIP_ACK_OK;
            }
    }

Link to comment
Share on other sites

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...