Jump to content

Andrew1024

Members
  • Posts

    2
  • Joined

  • Last visited

Nexus Mods Profile

About Andrew1024

Andrew1024's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm make a no-death mod where the Player gets teleported to Beggars Row and loses all his/her items on death. The effect works. The Player dies, screen fade, all items get destroyed and you have a set of ragged robes and ragged boots in your inventory. Problem is when I use the line Game.GetPlayer().EquipItem(ItemProperty) from the wiki it doesn't work. They are still naked. Here is my script so far... Scriptname __Teleport__Script extends activemagiceffect ObjectReference Property Loc01 Auto Event OnEffectStart(Actor akTarget, Actor akCaster) Game.FadeOutGame(False, True, 2.0, 1.0) Game.GetPlayer().RemoveAllItems() Game.GetPlayer().AddItem(Feet, 1, true) Game.GetPlayer().AddItem(torso, 1, true) akTarget.Moveto(Loc01) Debug.MessageBox("You have bled-out and died. You have been sent back to the land of the living, but it has cost you all of your worldy possessions. All that you own are the clothes on your back and a bedroll to lay your head.") EndEvent ObjectReference Property torso Auto ObjectReference Property Feet Auto As I said, it all works up to this point and all I need to finish that part of the mod is for the Boots and Robes in their inventory to auto-equip. Can anyone help?
  2. As the title says GetAvtorValuePercentage is not working. My custom teleport spell works if I place no conditions on it and it works with GetActorValue, but the percentage one doesn't. I tried placing it in the spell and tried placing it on the actual effect as well, neither worked. According to the wiki I should put the value as .15 for 15% but it won't trigger. I used GetPlayerActorValuePercentage...Health...<=...0.15 but it won't work. Anyone know what I'm doing wrong?
×
×
  • Create New...