Jump to content

Papyrus Advice


Shoneah0Tokala

Recommended Posts

Ok guys, I made a snow elf race (Race power = Ice Form)

The Ice form Power Relies on a bound armor and spell script to work, I've altered it so that until ateration reaches 30 it is simply a frost cloak spell after, level 30 you get the ice form armo and the two spells that go with it.

Heres how it looks now:

 

Scriptname IceFormScript extends activemagiceffect  

Armor Property ClothesCollegeRobesApprenticeVariant1 auto
Armor Property ClothesCollegeBootsApprenticeVariant1 auto
Armor Property BoundEbonyBoots auto
Armor Property BoundEbonyCuirass auto
Armor Property BoundEbonyGauntlets auto
Armor Property BoundEbonyHelmet auto
Weapon Property ElvenDagger auto
SPELL Property IceformSpikeLeftHandSpell auto
SPELL Property IceFormWallOfFrostSpell auto
SPELL Property FrostbiteLeftHandSpell auto

Event OnEffectStart (Actor ckTarget, Actor ckCaster)

Utility.Wait(0.2)
if((Game.GetPlayer().GetActorValue("Ateration") >= 30))
	Game.GetPlayer().EquipItem(BoundEbonyGauntlets, 1, true)
	Game.GetPlayer().EquipItem(BoundEbonyHelmet, 1, true)
	Game.GetPlayer().EquipSpell(IceFormSpikeLeftHandSpell, 1)
	Game.GetPlayer().EquipSpell(IceFormWallOfFrostSpell, 1)
	Game.GetPlayer().EquipItem(BoundEbonyBoots, 1, true)
	Game.GetPlayer().EquipItem(BoundEbonyCuirass, 1, true)
Else
	Game.GetPlayer().AddSpell(FrostbiteLeftHandSpell, 1)
endif

EndEvent

Event OnEffectFinish(Actor ckTarget, Actor ckCaster)

if (Game.GetPlayer().GetEquippedWeapon() == ElvenDagger)
	Game.GetPlayer().EquipItem(ElvenDagger, false, true)
	Game.GetPlayer().EquipSpell(FrostbiteLeftHandSpell, 1)
	Game.GetPlayer().RemoveItem(boundEbonyBoots, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyCuirass, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyGauntlets, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyHelmet, 1, true)
	Game.GetPlayer().RemoveSpell(IceFormSpikeLeftHandSpell)
	Game.GetPlayer().RemoveSpell(IceFormWallOfFrostSpell)
	Game.GetPlayer().EquipItem(ClothesCollegeRobesApprenticeVariant1, false, true)
	Game.GetPlayer().EquipItem(ClothesCollegeBootsApprenticeVariant1, false, true)
else
	Game.GetPlayer().EquipItem(ElvenDagger, false, true)
	Game.GetPlayer().EquipSpell(FrostbiteLeftHandSpell, 1)
	Game.GetPlayer().RemoveItem(boundEbonyBoots, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyCuirass, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyGauntlets, 1, true)
	Game.GetPlayer().RemoveItem(boundEbonyHelmet, 1, true)
	Game.GetPlayer().RemoveSpell(IceFormSpikeLeftHandSpell)
	Game.GetPlayer().RemoveSpell(IceFormWallOfFrostSpell)
	Game.GetPlayer().EquipItem(ClothesCollegeRobesApprenticeVariant1, false, true)
	Game.GetPlayer().EquipItem(ClothesCollegeBootsApprenticeVariant1, false, true)
endif

EndEvent

 

Now what I want to do is make this code work and add an extra couple of lines to tell the game that at level 40 alteration player gets "Ice Form Spike Left Hand Spell" and Ateration = 50 player gets "Ice Form Wall Of Frost spell".

 

So how can I restruture the script to to allow this, or should I put the two spells into a seperate script?

 

Any assistance on this would be very helpful because I'm still very new to papyrus.

Thank you

Edited by Shoneah0Tokala
Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...