Basic questions: Changing variables, undoing overwrites, and

Post » Wed Jun 20, 2012 6:07 am

Hi guys. I have 3 basic questions tonight:

1. How do you use a script to change the state variables of an objectreference? Change the name of an actor, for example. It appears the SDK doesn't allow me to do self.Name or have any mutator functions for that.

2. I accidentally overwrote the "PressurePlate" script and found out deleting it from the data folder causes errors. Is there any way to tell the program that the script is no longer overwritten by the player?

3. Is there some way to stop an objectreference who is casting a continuous spell to stop without deleting it? Disable()? Can an objectreference be subjected to multiple RemoteCast() at the same time?

Thanks
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am

Post » Wed Jun 20, 2012 12:11 am

1 You can change the display name for an actor by assigning him or her to a quest alias and choosing "change display name". That should be permanent, unless you tick the box to revert it when the quest finishes.

2 Look in "Details" on the data dialog. Or use TESVSnip. Or check out the original script and pex from the BSA.

3 Try InterruptCast

Disclaimer: All the above may be rubbish.
User avatar
Inol Wakhid
 
Posts: 3403
Joined: Wed Jun 27, 2007 5:47 am

Post » Wed Jun 20, 2012 5:33 am

I don't think the quest idea would work, since the display name in question is dynamically generated. It's strange that the Creation Kit doesn't even support basic accessor and mutator functions for objects.

By the way, is there anyway to know the data of a spell? i.e. Whether or not it is aimed, or fire and forget, or etc?
User avatar
lillian luna
 
Posts: 3432
Joined: Thu Aug 31, 2006 9:43 pm

Post » Wed Jun 20, 2012 1:48 am

It appears that only the .pex files are located in the .bsa archives. Since I also need to replace the default .psc script file that was accidentally overwritten, I am apparently stuck with having to reinstall (wtf?). Anyway... can anyone kindly copy and paste their default PressurePlate.psc file on here?

Thanks

Edit: I am just going to start a new thread
User avatar
brandon frier
 
Posts: 3422
Joined: Wed Oct 17, 2007 8:47 pm


Return to V - Skyrim