Papyrus : Setting default globalvariable property

Post » Tue Jun 19, 2012 4:59 am

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 ?
User avatar
Chris Duncan
 
Posts: 3471
Joined: Sun Jun 24, 2007 2:31 am

Post » Mon Jun 18, 2012 11:52 pm

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
User avatar
Life long Observer
 
Posts: 3476
Joined: Fri Sep 08, 2006 7:07 pm

Post » Tue Jun 19, 2012 5:59 am

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 ?
User avatar
Marcin Tomkow
 
Posts: 3399
Joined: Sun Aug 05, 2007 12:31 pm


Return to V - Skyrim