Author Topic: How to use DM Tools & Player Tools??  (Read 235 times)

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
How to use DM Tools & Player Tools??
« on: July 28, 2010, 08:54:34 pm »


               This is the answer to the question...

In lexicon, under Constants - Feats, we find the constant FEAT_PLAYER_TOOL_01, which tells us, that each of these special feats have a special script (now a standard bioware script) that you can change, though you will have to overwrite the existing after you make changes to it, to fire your custom script for these feats, it's a very fancy way of giving Players or DMs new feats or special powers. (technically scripted feats or powers)

Open up the script(s)  "x3_pl_tool01" / x3_pl_tool02" / etc. to access the custom scripts for Player Tools &

For DM Tools you open the script(s)  "x3_dm_tool01" / "x3_dm_tool02" / etc... to access these Bioware Scripts..

Any script functions you add to these base scripts will fire when the PC or DM uses their special tools with the appropriate matching feat name (eg, Player Tool 01 fires script "x3_pl_tool01", etc)

However, to apply give the PC or DM these special feat(s) / powers(s), you will need to either need to add to their skin the Bonus Feat (eg. Bonus Feat: Player Tool 1, etc), or add the feat to an item that they are can wear... (preferrably a skin if you wan the PC to always have the feat / special power)

If anyone has any information about controlling the # of uses of these feats, then that would be appreciated...


Here is an example of the Player Tool 1 script (Just to show you how to use the script)

//::///////////////////////////////////////////////
//:: Player Tool 1 Instant Feat
//:: x3_pl_tool01
//:: Copyright © 2007 Bioware Corp.
//:://////////////////////////////////////////////
/*
    This is an editable feat script for use with the
    10 Player instant feats provided in NWN v1.69.
//
    Look up feats.2da, spells.2da and iprp_feats.2da
*/
//:://////////////////////////////////////////////
//:: Created By: Brian Chung (Edited By Genisys / Guile)
//:: Created On: 2007-12-05  (Edited On 7/28/2010)
//:://////////////////////////////////////////////
//Example Script...
void main()
{
    object oUser = OBJECT_SELF;
// 
   FloatingTextStringOnCreature("You are empowered with great power!", oUser);
//
    effect eEffect;
//
    //Give the User +4 Dodge AC (Stackable)
    eEffect = EffectACIncrease(4, AC_DODGE_BONUS, AC_VS_DAMAGE_TYPE_ALL);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oUser, 600.0);//
//
    //Give the User +4 Attack Bonus (Stackable up to +20 w/ Weapon Bonus)
    eEffect = EffectAttackIncrease(4, ATTACK_BONUS_MISC);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oUser, 600.0);
//
    //Give the User 60 % Concealment
    eEffect = EffectConcealment(60, MISS_CHANCE_TYPE_NORMAL);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oUser, 600.0);
//
    //Apply Cool Visual Effects to show the PC they are enchanted...
    eEffect = EffectVisualEffect(13);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oUser, 600.0);
// 
   eEffect = EffectVisualEffect(10);
    ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oUser, 600.0);
//
}
               
               

               


                     Modifié par Genisys, 28 juillet 2010 - 08:25 .