Jump to content

Game.GetPlayer().SetValue doesnt works for me


Neanka

Recommended Posts

here is fragment of my script

const ScriptName DEFQ01 extends Quest hidden
;-- Properties --------------------------------------
ActorValue Property Strength Auto

;-- Variables ---------------------------------------

;-- Functions ---------------------------------------
Function Fragment_Stage_0500_Item_00()
Game.GetPlayer().SetValue(Strength, Game.GetPlayer().GetBaseValue(Strength) + 1)
Debug.MessageBox("Your strength increased by 1")
Self.Stop()
EndFunction

then i run the game and set quest stage to 500

then messagebox appears and quest finish but player.getav Strength (and pipboy) show me same value that was before

 

p.s. this string i got just from PerkQuest script (which should works)

Game.GetPlayer().SetValue(Strength, Game.GetPlayer().GetBaseValue(Strength) + 1)

p.p.s. Yes i saw another topick here but Strength is not a const, so i think it another problem here

Edited by Neanka
Link to comment
Share on other sites

  • Recently Browsing   0 members

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