Jump to content

Photo

RND problem

help rnd script

  • Please log in to reply
1 reply to this topic

#1
12wan

12wan

    Stranger

  • Members
  • Pip
  • 5 posts
Who faced this problem:
 
in the script
 
GlobalVariable Property RND_HungerPoints Auto
GlobalVariable Property RND_HungerLevel01 Auto
 
if RND_HungerPoints.GetValue () <RND_HungerLevel01.GetValue ()
  Debug.Notification ("HungerPoints" + RND_HungerPoints.GetValue ())
  Debug.Notification ("HungerLevel01" + RND_HungerLevel01.GetValue ())
    endIf
 
RND_HungerPoints.GetValue () shows 0
and
RND_HungerLevel01.GetValue () shows 0
 
although from the console it turns out that:
RND_HungerPoints = 38.5
RND_HungerLevel01 = 5
 
What could be the problem?
I'm doing a mod and I want it to work with RND, but I can not get the values of any global variables.
 
I ask for help.
Thanks in advance.


#2
dactyl

dactyl

    Regular

  • Premium Member
  • 65 posts

Did you auto fill the script properties for RND_HungerPoints and RND_HungerLevel01 in the Creation Kit?

 

Go to item that has script attached, click the attached papyrus script, then click the "Properties" button, and then click "Auto-Fill All" in Properties window. (make sure the variables were assigned to something and not left as "<Default>")







Also tagged with one or more of these keywords: help, rnd, script

IPB skins by Skinbox
Page loaded in: 1.099 seconds