NukaCooler Posted June 24, 2015 Share Posted June 24, 2015 I'm trying to use the Setvariable command added by NVSE, but nothing seems to be working. scn 0000MATNPerkActivatorQSTSCPT short DoOnce begin GameModeif DoOnce == 0set DoOnce to 1short HealSleep == con_GetGameSetting fHealingRateSleepingshort Heal6 == con_GetGameSetting fADVHealRateEndurance6Bonusshort Heal7 == con_GetGameSetting fADVHealRateEndurance7Bonusshort Heal8 == con_GetGameSetting fADVHealRateEndurance8Bonusshort Heal9 == con_GetGameSetting fADVHealRateEndurance9Bonusshort Heal10 == con_GetGameSetting fADVHealRateEndurance10Bonus0000MATNPerkActivatorREF.SetVariable "Variable05", HealSleep0000MATNPerkActivatorREF.SetVariable "Variable06", Heal60000MATNPerkActivatorREF.SetVariable "Variable07", Heal70000MATNPerkActivatorREF.SetVariable "Variable08", Heal80000MATNPerkActivatorREF.SetVariable "Variable09", Heal90000MATNPerkActivatorREF.SetVariable "Variable10", Heal10StopQuest 0000MATNPerkActivatorQSTendifend Gives error Script command "0000MATNPerkActivatorREF.SetVariable" not found Another script gives Unexpected end of line in line 35 (con_SetGameSetting fHealingRateSleeping 0000MATNPerkActivatorREF.GetVariable "Variable05") Link to comment Share on other sites More sharing options...
rickerhk Posted June 25, 2015 Share Posted June 25, 2015 Sometimes using numeric prefixes on REFIds just breaks everything. So it should be avoided. Link to comment Share on other sites More sharing options...
aerophoneix Posted August 29, 2015 Share Posted August 29, 2015 Back when I coded in Java we could never use numbers unless the first character was a letter. Usually thinks its a value or a constant. Link to comment Share on other sites More sharing options...
RoyBatterian Posted August 29, 2015 Share Posted August 29, 2015 Good rule of thumb, is to just not use numbers at the start of anything. Use aaa or something instead. Link to comment Share on other sites More sharing options...
Recommended Posts