Jump to content

An "on equip" script for a specific kit; one final bit to work out.


Rana

Recommended Posts

My idea behind this is simple: write a script that will exist only for a specific kit, and will only go into effect when that specific kit equips a particular item.

 

Here's what I have so far in the kit's baldur.BAF file:

 

IF 
 Kit(Player1,RW#BLA)
 HasItemEquiped("Leat01",Player1)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player1)
END

IF 
 Kit(Player2,RW#BLA)
 HasItemEquiped("Leat01",Player2)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player2)
END

IF 
 Kit(Player3,RW#BLA)
 HasItemEquiped("Leat01",Player3)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player3)
END

IF 
 Kit(Player4,RW#BLA)
 HasItemEquiped("Leat01",Player4)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player4)
END

IF 
 Kit(Player5,RW#BLA)
 HasItemEquiped("Leat01",Player5)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player5)
END

IF 
 Kit(Player6,RW#BLA)
 HasItemEquiped("Leat01",Player6)
THEN
RESPONSE #100
 ApplySpellRES("RW#TEST",Player6)
END

 

I've got it to work so that when the game detects a player of that specific kit wearing this particular item, the game applies the spell. My problem is that when the item is unequipped, the spell remains in effect and I don't want this. I basically want an instant/while equipped effect, but in script form.

 

The grand scheme behind all this is to create a Fighter/Mage kit with the unique ability of being able to cast arcane spells without penalty while wearing up to studded leather armor, but anything beyond studded leather will suffer the same game restrictions any other Fighter/Mage would.

 

Any thoughts or suggestions on how I can go about getting my desired effect? Perhaps a script that can cause a specific effect to be immediately removed?

 

Edit: Nevermind, I figured it out! ???

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...