Pseudo casting is basically cast a spell your not supposed to be able to. By example if a 19 Druid 1 cleric with 19 wisdom have a item that give him a spellslot level 9 spell. He will be able to cast a level 9 spell of cleric. That simply affect wizard (spell learn from scroll), druid and cleric other class cannot pseudo cast (as far I know).
This script only active on player, so it doesn't fired on item dm/creature and such. If a exploit is detected the script simply stop the spell and give a feedback to the player, it will not warning the DM (pointless anyway).
This fix is easy to install :
1) Click Edit tab then go to the Module properties 2) In the Advanced tab you will have a Variables in the menu.
3) Add a string nammed X2_S_UD_SPELLSCRIPT for the value simply enter the script that you saved the script.
I simply use the method of scripting, everyone have is own. I prefer to initiate the variable first since in javascript that reduce the lag even if that about 1/100 of a milli second. That I reflex to initiate then like that. Not a big deal anyway.
Forgot about the GM thing, I just add it.
I just corrected the typo (Yah my english suck I know that already)
Where is this supposed check for not applying to DMs? You check for not being a PC, but DMs and DM-possessed NPCs count as PCs as far as scripting goes.
This should probably come with an assessment of the likelihood of someone being able to pseudo-cast. Wizards can only pseudo-cast if they de-level, which many modules do not provide an opportunity for. The cleric/druid example requires a certain type of item without which the PC is benefiting very little from the class split.
Overall, I'd advise people against going through the trouble of blocking this merely because pseudo-casting is a possibility. (Pseudo-casting is already a difficult and risky thing to try to take advantage of, and integrating this fix could be something of a pain if you already have a custom spellhook.) However, if it is an actual problem rather than a theoretical one, sure use a script like this.
You must be Logged In to post comments in this section.