Quantcast
Channel: Modding — Beamdog Forums
Viewing all articles
Browse latest Browse all 11774

Mage->Sorc. Script - Auto-Spell Removal Question

$
0
0
Trying to work around inability to dual/multi sorc.s.
Easiest way (though crass) I found is to just use a wizard, increase spell slots, then memorize 6 copies of each "known" spell. Manually keep track of castings for each level so you don't go over.

Keeping track is a bit boring however. I'd like to write a script that just removes one instance of every other spell of a given level when a spell is cast; something like this:

~~~
IF
Cast(WIZARD_spellname1) //???"Cast" is a made up function. What function could detect casting
THEN
RESPONSE #100
RemoveSpell(WIZARD_spellname2)
RemoveSpell(WIZARD_spellname3)
RemoveSpell(WIZARD_spellname4)
RemoveSpell(WIZARD_spellname5)
END

... Repeat for every spell.
~~~

I'm *totally* new to scripting with BG though.
What kind of function could do this?
Alternatively are there any functions that I could call to return the number of memorized instances of spells? (Then running a similar routine whenever number of memorized spells isn't always equal.)

Any help much appreciated!!!

Viewing all articles
Browse latest Browse all 11774

Latest Images

Trending Articles



Latest Images