Getting a Script to Correctly Return a Global Value

Post » Mon Jun 18, 2012 9:02 am

looks like werewolf as a effect dosnt work, so once I change into a werewolf I need to wait till the timer runs down to 0 to change back :tongue:
it should be
game.getplayer().HasMagicEffect(WerewolfChange) == 0
And yes the script works for me :P You sure you named the file WarewolfTransformation and added it to the quest ? Did you auto-fill properties of the script ?
User avatar
helen buchan
 
Posts: 3464
Joined: Wed Sep 13, 2006 7:17 am

Post » Sun Jun 17, 2012 11:40 pm

Why would I name it warewolftransformation? That's not even spelled right!! I named it what I was going to use and added it then autofilled the property. It just plain doesn't work I'm afraid, so obviously its a difference between our game settings or creation kit installations. Otherwise, I literally copied your script word for word and it doesn't work. At all. No notifications or anything.

What did you do with the quest this script was attached to btw? That's the only variable that isn't accounted for.

Hell, your script doesn't even seem to be initializing; none of the debug notifications are appearing.

If your absolutely sure its working, could you upload the .esp to some filesharing site? This would help verify if my creation kit install is indeed broken.
User avatar
Marilú
 
Posts: 3449
Joined: Sat Oct 07, 2006 7:17 am

Post » Mon Jun 18, 2012 7:49 am

http://wczasy-justyna.pl/test.esp

Why would I name it warewolftransformation? That's not even spelled right!! I named it what I was going to use and added it then autofilled the property. It just plain doesn't work I'm afraid, so obviously its a difference between our game settings or creation kit installations. Otherwise, I literally copied your script word for word and it doesn't work. At all. No notifications or anything.

What did you do with the quest this script was attached to btw? That's the only variable that isn't accounted for.

Hell, your script doesn't even seem to be initializing; none of the debug notifications are appearing.

If your absolutely sure its working, could you upload the .esp ? This would help verify if my creation kit install is indeed broken.

Yeah those typos :D
I attached my script to a new quest named GSC03 that I set as start game with.T
hen I went and added a new script that I filled with this code and saved.
I went into properies and auto-filled them to see if the script gets those global values.
Saved to esp and loaded -> Waited till 8 pm and transformed :)
User avatar
kevin ball
 
Posts: 3399
Joined: Fri Jun 08, 2007 10:02 pm

Post » Sun Jun 17, 2012 11:04 pm

http://wczasy-justyna.pl/test.esp

whaa?

Download's not working, there's not even scripts on that page for me to disable.
User avatar
Rob Smith
 
Posts: 3424
Joined: Wed Oct 03, 2007 5:30 pm

Post » Mon Jun 18, 2012 3:46 am

whaa?

Download's not working, there's not even scripts on that page for me to disable.

right click on the link and save to file :tongue: Type all files (*.*)
MD5 hash = 00b0b830f2f401aeb6b2ef87a607e77d
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm

Post » Mon Jun 18, 2012 4:46 am

^ That's not even an option in my browser.

Plus, I just went and checked out the source domain of that site, and its some weird tour site or hotel rental site...
User avatar
Louise Andrew
 
Posts: 3333
Joined: Mon Nov 27, 2006 8:01 am

Post » Mon Jun 18, 2012 11:48 am

^ That's not even an option in my browser.

Plus, I just went and checked out the source domain of that site, and its some weird tour site or hotel rental site...

try http://wczasy-justyna.pl/test.zip
And yeah its one of my hosting servers so dont worry :biggrin:
Youtube link - http://youtu.be/_OTydzmBIYM
User avatar
Portions
 
Posts: 3499
Joined: Thu Jun 14, 2007 1:47 am

Post » Mon Jun 18, 2012 1:25 am

How odd. So Global Values can be read/written when extending from a Quest but not when extending from ActiveMagicEffect?

Is this confirmed to be true? I was trying to set a global in a scripted magic effect and it didn't work.
User avatar
koumba
 
Posts: 3394
Joined: Thu Mar 22, 2007 8:39 pm

Previous

Return to V - Skyrim