Aller au contenu

Photo

Faking class Skills?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
nicethugbert

nicethugbert
  • Members
  • 5 209 messages
I want to make a script that will convert a cross class skill into a virtual class skill.  I want the script to add a skill bonus capped to class level + 3  - skill ranks.

Which event do I attach this script to?  OnLevelUp? 

How do I stop the bonus from getting dispeled or otherwise going away.

Modifié par nicethugbert, 22 janvier 2011 - 12:20 .


#2
MasterChanger

MasterChanger
  • Members
  • 686 messages

nicethugbert wrote...

I want to make a script that will convert a cross class skill into a virtual class skill.  I want the script to add a skill bonus capped to class level + 3  - skill ranks.

Which event do I attach this script to?  OnLevelUp? 


Don't attach it to any event, make it a persistent feat that you assign to the PC. You then attach a spells.2da entry to this feat, and an impact script to the spell.

It's a bit more work than just putting it on a module event, but for effects that you want always on (and updating) it's the best approach.

How do I stop the bonus from getting dispeled or otherwise going away.


Use EffectExtraordinary to make an effect non-dispellable; use EffectSupernatural to make it never fade unless you specifically remove it via script. The usage is:

eMyEffect = EffectSupernatural(eMyEffect);


#3
nicethugbert

nicethugbert
  • Members
  • 5 209 messages
NEAT! Thx! It works!

#4
Dann-J

Dann-J
  • Members
  • 3 161 messages
I seem to remember that restoration spells ignore the supernatural effect status and remove them anyway. Hopefully restoration only removes negative effects though.