Hi all, my first post on these forums, although I have been a lurker for some time and has learned much from you!
I am using a quest stage to set some default variables as per the excellent tutorial on the GECK wiki (http://geck.gamesas.com/index.php/Adding_an_Options_Menu).
I have one variable (lets call it myVariable) that I want to set to 0.5, but when I load the mod and do a "show myVariable" it has the value 0.0
If I use "set myVariable to 0.5" in the console the variable is set to 0.5 with no problem.
Setting it to 0.5 inside a "regular" script also works. It seems the problem is only when I try to set it to less than 1 in a Quest Stage scriptbox.
I have other variables set in the exact same way but to values of 1 and higher and they work fine.
Some details:
I have a quest called "myQuest"
I have a script called "myQuestScript" that is selected in myQuest
I have a script "myOtherScript" that wants to use the variables from myQuestScript
Variable declaration in myQuestScript
float myVariable
Set command in the stage 10 scriptbox of myQuest (myQuest has myQuestScript selected)
set myQuest.myVariable to 0.5
Declaration and set command in myOtherScript
float myVariable
set myVariable to myQuest.myVariable
Edit from questions below:
myQuest starts enabled
The variable is not overwritten in a different stage or by another script
It is not a rounding issue - a value of 5.5 works fine
Any help would be greatly appreciated, I'm at the edge of sanity here :banghead:
Regards,
The Nonsense Factory