Jump to content

Is it safer to use global variables or conditional variables inside a script?


trepleen

Recommended Posts

I need to keep track of minor actions a follower has performed.

 

Is it safer to use global variables using GetGlobalValue, or using conditional variables inside a script using GetVMQuestVariable?

 

I've heard that replacing a mod with a newer version can have problems with script variables and/or global variables.

Link to comment

one of those computer science problems that will probably never be truely solved, because of human emotion and cleverness (or lack thereof)

 

from a long time programming background, global variables are the devil. and the few skyrim mods i tried to tweak and submit new features to, i ended up completely rewriting because of their crazy use of globals.

 

i don't think either have problems the other do not have with updating. the problem is the skyrim save system itself.

MyController extends Quest
Bool Property Someshit = False auto hidden
MyOtherScript extends Whatever
MyController Property Mine auto

Function Whatever()
    DoShit(Mine.Someshit)
EndFunction

imho, is the boss.

Link to comment

one of those computer science problems that will probably never be truely solved, because of human emotion and cleverness (or lack thereof)

 

from a long time programming background, global variables are the devil. and the few skyrim mods i tried to tweak and submit new features to, i ended up completely rewriting because of their crazy use of globals.

 

i don't think either have problems the other do not have with updating. the problem is the skyrim save system itself.

MyController extends Quest
Bool Property Someshit = False auto hidden
MyOtherScript extends Whatever
MyController Property Mine auto

Function Whatever()
    DoShit(Mine.Someshit)
EndFunction

imho, is the boss.

 

Sounds good, I appreciate the technique.

 

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use