futaxmale Posted April 12, 2016 Posted April 12, 2016 hi im trying to make it so that when a global variable goes up by 1 it increases the players health by 2 Â "Each point of toughness provides 2 points of health" Â but i haven't had any success TFPureHoney.psc toughmaker.psc
WraithSlayer Posted April 13, 2016 Posted April 13, 2016 It's hard to help when the script code is seemingly completely different from what you say you're trying to do. But at a glance, you have an OnUpdateGameTime() event defined in toughmaker.psc that doesn't have a corresponding RegisterForSingleUpdateGameTime() call anywhere. Therefore, that code will never execute.
futaxmale Posted April 13, 2016 Author Posted April 13, 2016 if i were to start it from scratch what would i do?
WraithSlayer Posted April 13, 2016 Posted April 13, 2016 Well, you want to increase the player's health by 2 every time a given condition is met, right? Why not keep it really simple and just execute the following code whenever applicable: Game.GetPlayer().ModActorValue("health", 2.0)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.