Removing Special Abilities
#1 -Moonfruit-
Posted 04 August 2003 - 08:35 AM
What I mean is this: I've appended SPELL.IDS with two custom spells (say SPIN111 SPECIAL_A and SPIN112 SPECIAL_B)
Now I have coded something like this:
IF
Level(Myself,10)
Global("SpecialA","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("SpecialA","LOCALS",1)
AddSpecialAbility("SPIN111")
END
IF
Level(Myself,11)
Global("SpecialB","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("SpecialB","LOCALS",1)
RemoveSpell("SPIN111")
AddSpecialAbility("SPIN112")
END
The problem is that it doesn't remove the old spell. Any suggestions?
Thanx
#2
Posted 04 August 2003 - 11:24 AM
W_GUI - a GUI replacement for Baldur's Gate 2/TUTU/BGT/CA
W_PackMule - Your own pack mule for Baldur's Gate 2/Tutu/BGT/CA, BGEE and BG2:EE
Psionics Unleashed - play as a Psion, mod for Baldur's Gate 2/Tutu/BGT/CA
#3
Posted 04 August 2003 - 01:39 PM
If
LevelGT(Myself,10)
Then
RESPONSE #100
RemoveSpell("SPIN111")
END
The problem with your script is that action "RemoveSpell" removes the spell from the list of memorized spells, not from the list of known spells, so when you are rested it will be available again.
Using LevelGT and not checking Global varible will make you to forget the spell immediately after resting.
(After some time I start to think that I may be wrong in both cases. But if I'm wrong then probably someone will correct me soon)
Edited by Kwiat_W, 04 August 2003 - 01:54 PM.
W_GUI - a GUI replacement for Baldur's Gate 2/TUTU/BGT/CA
W_PackMule - Your own pack mule for Baldur's Gate 2/Tutu/BGT/CA, BGEE and BG2:EE
Psionics Unleashed - play as a Psion, mod for Baldur's Gate 2/Tutu/BGT/CA
#4 -Moonfruit-
Posted 05 August 2003 - 07:41 AM
I was thinking along the lines of using the same coding that is used when the PC loses his/her Bhaalspawn powers, but I am as of yet unable to locate that specific spell or script.
#5
Posted 05 August 2003 - 09:16 AM
I'll have a closer look tomorrow if you want. B)
< jcompton > Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"
#6
Posted 05 August 2003 - 09:05 PM
...loses his/her Bhaalspawn powers...
It is in cut41I.bcs. The relevant command is:
ReallyForceSpell(Player1,LOSE_ALL)
SPIN838.spl is the paarticular spell.
Edited by Azrii, 06 August 2003 - 01:05 AM.
Iltha Windspear
Working on Iltha Windspear Expansion. At left is Iltha, not me! I'm a guy. Who's Azrii you ask? She's the one who taught me it's a lot easier to fly with a basic storyline in hand as opposed to relying on my 'intuitive and ingenious' imagination.
#7 -Moonfruit-
Posted 06 August 2003 - 09:27 AM
I'll test it out later this week.