Page 1 of 1

Papyrus : Setting default globalvariable property

PostPosted: Tue Jun 19, 2012 4:59 am
by Chris Duncan
Hi all,


Like
int Property whatever = xx auto


I would like to default

globalvariable Property fron_mining_experience auto
to the global I already created fron_mining_experience, to obtain something like

 globalvariable Property fron_mining_experience = fron_mining_experience auto

But this above line doesn't function. Any Idea please ?

Papyrus : Setting default globalvariable property

PostPosted: Mon Jun 18, 2012 11:52 pm
by Life long Observer
You can't use editorIDs in Papyrus like that, nor can you initialise variables or properties to anything but literals outside of a function. Take a read of this - http://www.cipscis.com/skyrim/tutorials/editorids.aspx

Cipscis

Papyrus : Setting default globalvariable property

PostPosted: Tue Jun 19, 2012 5:59 am
by Marcin Tomkow
tx for the fast answer. So it means that I can only default int properties, like
int property whatever = 3 auto

but not
globalvariable property fron_mining_experience = fron_mining_experience auto

given that I already defined fron_mining_experience as a global...

If true, I would have to update all 590+ miningOreScript already in the game manually ?