SphereCommunity
How to disable skills - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: How to disable skills (/Thread-How-to-disable-skills)



How to disable skills - zottolo - 01-06-2016 07:03 PM

good morning friends!
i was wondering if there's a correct way to deactivate the following skills:
-necromancy
-spellweaving
-bushido
-ninjitsu
-focus
-chivalry

i tried simply removing them from sphere_skills.scp and searching for relative files to delete and it looks like they disappear, but as soon as i open my skill gump ingame from the paperdoll and choose a category to show, my client crashes.

as i also edit sphere_dialog.scp to remove necromancy from the skill list in the Info menu, i get a messy list


RE: How to disable skills - Kanibal - 01-06-2016 10:22 PM

Code:
[SKILL 49]
DEFNAME=SKILL_Necromancy
KEY=Necromancy
TITLE=Necromancer
STAT_STR=20
STAT_INT=100
STAT_DEX=40
BONUS_STR=0
BONUS_DEX=0
BONUS_INT=100
BONUS_STATS=15
ADV_RATE=10.0,200.0,800.0
// VALUES=1,10,80

ON=@SkillStart
    SRC.SYSMESSAGE This skill is disabled.
    SRC.KILL
    RETURN 1



RE: How to disable skills - zottolo - 01-06-2016 10:45 PM

this one could be a nice solution...in spite of it will be still present in the various menus i can work in on it....thank you!


RE: How to disable skills - Criminal - 01-07-2016 04:38 AM

go to these menus and delete the text


RE: How to disable skills - zottolo - 01-07-2016 06:04 AM

(01-07-2016 04:38 AM)Criminal Wrote:  go to these menus and delete the text

yeah...this is the first thing i tried but unfortunately doesn't work properly as explained in the main post...

in the end i think i resolved as kanibal explained before, plus, in spite of my players will not have a chance to train those skill, i'm going to use
Code:
adv_rate=0
and just in case someone from the staff would manually modify those skill amount i'll use a check in my stat cap system to send them back to 0 ^_^


RE: How to disable skills - rastrero - 01-14-2016 02:41 AM

ON=@SkillStart
return 1 //this prevent using the skill.

ON=@SkillStart
necromancy=0 //u know ...
return 1

This prevent the skill for being used. Put it behind the skill u wanna disable in sphereskills.

[function Createnpc]
necromancy=0
chivalry = 0
etc etc

use this second to put their skill lvl at 0 when they create the char. In Sphere_triggers

U can modify de menuskill and names using Uofiddler if u want make them invisible.


RE: How to disable skills - zottolo - 01-14-2016 02:43 AM

tnx! this is also very nice! i'll use this too!


RE: How to disable skills - rastrero - 01-14-2016 02:58 AM

(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.


RE: How to disable skills - zottolo - 01-14-2016 03:11 AM

(01-14-2016 02:58 AM)rastrero Wrote:  
(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.

i know im kinda newbie in scripting and i always working with wiki in one hand and forum on the other but sometimes is not so immediate or easy to find wht i need for even if it's obvious for people with more experience..i just need sometimes...thx anyway ^_^


RE: How to disable skills - rastrero - 01-14-2016 03:36 AM

(01-14-2016 03:11 AM)zottolo Wrote:  
(01-14-2016 02:58 AM)rastrero Wrote:  
(01-14-2016 02:43 AM)zottolo Wrote:  tnx! this is also very nice! i'll use this too!

This is very very basic sphere56b script. I recommend to try find an answer in "torfowiki" And learn how to find what u are looking for there.
U can also answer but will be slower and u will learn less.

i know im kinda newbie in scripting and i always working with wiki in one hand and forum on the other but sometimes is not so immediate or easy to find wht i need for even if it's obvious for people with more experience..i just need sometimes...thx anyway ^_^

U need to know how sphere works, then u will know where to look.
just keep doing things and the knolowdge will come gl