Object Script

Post » Thu Nov 11, 2010 1:44 am

Is it possible to script effect an object to resurrect an actor so long as a specific object is in said actor's inventory?

Specifically, I want to script all quills in the game to reanimate an actor (like with the reanimate magic effect, so they are resurrected, and follow/fight for the player), after a quill is placed in his/her inventory, but have them die again ONLY once it is removed.

Anyone have any idea how to implement this?

EDIT: Only have use of the Construction Set
User avatar
clelia vega
 
Posts: 3433
Joined: Wed Mar 21, 2007 6:04 pm

Post » Thu Nov 11, 2010 12:11 pm

Is it possible to script effect an object to resurrect an actor so long as a specific object is in said actor's inventory?

Specifically, I want to script all quills in the game to reanimate an actor (like with the reanimate magic effect, so they are resurrected, and follow/fight for the player), after a quill is placed in his/her inventory, but have them die again ONLY once it is removed.

Anyone have any idea how to implement this?

EDIT: Only have use of the Construction Set
Perfectly possible.

You would just need to place a script on the quills that went something like this:

ScriptName QuillResurrectScriptref actorBegin GameMode	if (actor == 0)		set actor to GetContainer		return	endif	if (actor.GetDisabled == 1)		return	endif	if (actor.GetDead == 1)		actor.PMS effectReanimate		; not sure what else needs to be done here - you could try looking at the vanilla scripts		actor.Resurrect 1	endifEnd

User avatar
Danel
 
Posts: 3417
Joined: Tue Feb 27, 2007 8:35 pm

Post » Thu Nov 11, 2010 2:19 pm

Thanks. I couldn't figure out what else needed to be done either. I tested it as is, and unsurprisingly it didn't work. So if anyone else can find out how to complete that script, it'd be greatly appreciated.
User avatar
Kelly Tomlinson
 
Posts: 3503
Joined: Sat Jul 08, 2006 11:57 pm


Return to IV - Oblivion