This line isn't working.

Post » Tue Jun 19, 2012 2:03 am

If Player.GetEquippedSpell(1) == SummonGreaterMinion			Player.EquipSpell(SummonLesserMinion, 1)EndIf		Player.RemoveSpell(SummonGreaterMinion)


For some reason it doesn't swap the spells and it does NOT remove summongreaterminion.
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm

Post » Tue Jun 19, 2012 3:51 am

What is the type of 'Player', friend?
With this new scripting language, I learn the hard way that you have to pay extra extra extra care with type & type casting. Even with dropdown box for ReferenceAlias. Once wrong cast and the script didnot work (even thou it complies)
User avatar
Jeremy Kenney
 
Posts: 3293
Joined: Sun Aug 05, 2007 5:36 pm

Post » Mon Jun 18, 2012 2:35 pm

I don't think casting would be the problem here, if the script compiles.

Have you tried putting a couple of debugging functions in there to make sure the code is running?

Cipscis
User avatar
KIng James
 
Posts: 3499
Joined: Wed Sep 26, 2007 2:54 pm

Post » Mon Jun 18, 2012 7:01 pm

Do you have the Player property set up correctly?
User avatar
Vicky Keeler
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:03 am


Return to V - Skyrim