Is it possible to somehow modify the way wands work as though to make it you must have a custom amount of Use Magical Device (Example, 25) to be able to use them?
Custom Wand script for increased Use Magical Device Requirement?
Débuté par
Xeneize
, avril 07 2015 07:48
#1
Posté 07 avril 2015 - 07:48
#2
Posté 07 avril 2015 - 11:22
seems like script, x2_pc_umdcheck
2 other possibilities: if it's a wand with a unique tag, try using a tag-based script for it. Or, for general wand usage, an alternate is to try placing an extra condition into the module's onItemActivate script.
if (GetIsSkillSuccessful(oCaster, nSkill, 25 + nInnateLevel))
{
return TRUE;
}note, though, it bypasses all but scrolls unless this is changed: // -------------------------------------------------------------------------
// Only Scrolls are subject to our default UMD Check
// -------------------------------------------------------------------------
int nBase = GetBaseItemType(oItem);
if (nBase != BASE_ITEM_SPELLSCROLL)
{
// spell not cast from a scroll
return TRUE;
}- try putting some debug at the top of X2_UMD() to find out if/when it's actually firing for wands ...2 other possibilities: if it's a wand with a unique tag, try using a tag-based script for it. Or, for general wand usage, an alternate is to try placing an extra condition into the module's onItemActivate script.
- Xeneize aime ceci
#3
Posté 08 avril 2015 - 01:25
Will try that, many thanks.





Retour en haut






