quest alias script blocking activation after uninstall

Post » Sun Jun 24, 2012 4:31 am

Ok so I'm trying to finalize my see you sleep mod, and I disabled my esp, reload a save game and now activation of any bed that had my script attached to it with my quest alias is now broken; I cannot sleep in it. It is as if activation is blocked.

I made the quest alias because everyone said if I attached the script to the bed itself, this very problem would occur when they uninstalled, but now it has happened anyway. Do I need to delete my scripts as well? It's not running correctly when uninstalled, its simply blocking the activation of the beds.
User avatar
DarkGypsy
 
Posts: 3309
Joined: Tue Jan 23, 2007 11:32 am

Post » Sun Jun 24, 2012 2:09 pm

Did you set Activatable on the bed to False in the Script? If so, you need to reenable them. If not, then they should be activatable.

In my Horse Commands mod, I disable activation on the horses so that I can have my own custom menu pop-up when they activate them.
I make sure I reenable the activation when the horse dies, when the horse moves away from the player or when the player is riding it.
And I get my users to disable the mod in-game with a console command (i.e. setpqv kuhcq uninstallnow true) before deactivation and uninstallation.
When they disable the mod, I go through all the horses aliases and reenable their activation.
User avatar
Matthew Barrows
 
Posts: 3388
Joined: Thu Jun 28, 2007 11:24 pm

Post » Sun Jun 24, 2012 9:28 am

Did you set Activatable on the bed to False in the Script? If so, you need to reenable them. If not, then they should be activatable. In my Horse Commands mod, I disable activation on the horses so that I can have my own custom menu pop-up when they activate them. I make sure I reenable the activation when the horse dies, when the horse moves away from the player or when the player is riding it. And I get my users to disable the mod in-game with a console command (i.e. setpqv kuhcq uninstallnow true) before deactivation and uninstallation. When they disable the mod, I go through all the horses aliases and reenable their activation.

Yes I did block activation so that is the problem. Question: How do I call a function in an alias script from a quest script? If I am understanding you correctly I would need a function in my alias that sets activation to true, so what I did was create a conditional variable that is accessible through the menu in my main quest which updates the alias quest every 5 seconds. However, I was unable to call a function from the alias quest like I would a normal quest function. Normally it would be:

NameOfQuest.NameOfFunction() so I'm not sure how to call the function in my alias quest.
User avatar
Miss K
 
Posts: 3458
Joined: Sat Jan 20, 2007 2:33 pm

Post » Sun Jun 24, 2012 7:28 am

NameOfQuest.NameOfFunction() so I'm not sure how to call the function in my alias quest.
Same way, but in reverse.

YourAliasScript Property AliasScript Auto...    AliasScript.Function()...
User avatar
YO MAma
 
Posts: 3321
Joined: Thu Dec 21, 2006 8:24 am

Post » Sun Jun 24, 2012 4:57 pm

Same way, but in reverse.

YourAliasScript Property AliasScript Auto...	AliasScript.Function()...
Ok so I did that and got this compile error:

cannot call the member function SeeYouSleepUninstall alone or on a type, must call it on a variable

Here is my function:

Function SeeYouSleepUninstall()    GetReference().BlockActivation(false)EndFunction

Would I be better off just setting a variable in the alias quest which would then call the SeeYouSleepUninstall function from within?
User avatar
Sheila Esmailka
 
Posts: 3404
Joined: Wed Aug 22, 2007 2:31 am


Return to V - Skyrim