// Wild magic spell-script: // all spells are #include "x2_inc_switches" #include "prc_inc_spells" void main() { int nSpell = PRCGetSpellId(); object oItem = PRCGetSpellCastItem(); if(GetBaseItemType(oItem) == BASE_ITEM_POTIONS) return; if(nSpell == SPELL_RESURRECTION || nSpell == SPELL_RAISE_DEAD) return; int nRand = Random(100); if(nRand <= 50) { FloatingTextStrRefOnCreature(84829, OBJECT_SELF); ExecuteScript("q6_s3_rodwonder", OBJECT_SELF); SetModuleOverrideSpellScriptFinished(); } }