Is there a Papyrus Equivalent to `setactorfullname`?

Post » Mon Jun 18, 2012 2:47 pm

Is there a Papyrus Equivalent to `setactorfullname`? like in the GECK? (http://geck.gamesas.com/index.php/SetActorFullName) I tried looking but I am not sure if there is or not.

Basically I want my dragon named `Krosis Kul` to on death ,resurrect him ,set him as a `ghost` and invulnerable using setghost()/setInvulnerable(), and then change the full name to `Krosis Kul's ghost` that part works.


krosis = the base form of the NPC/dragon.
krosisreff = the in game NPC/dragon.
Scriptname krosisscript extends Actor  event OnLoad()AllowPCDialogue(true)endEventEvent OnDeath(Actor akKiller)  if (akKiller == Game.GetPlayer())endIfkrosisreff.Resurrect()krosisreff.setghost()krosis.setInvulnerable()krosisreff.addspell(abKrosisghost)endEventActor Property krosisreff  Auto  ActorBase Property krosis  Auto  SPELL Property AbKrosisghost  Auto  
User avatar
[ becca ]
 
Posts: 3514
Joined: Wed Jun 21, 2006 12:59 pm

Post » Mon Jun 18, 2012 7:10 pm

Just browsing through actor script functions on the wiki, I didn't see anything like that. I don't know if none exist or if it's just hidden somehow :/
You might have to make two actors, and replace the dead one with the ghost when it comes back to life.
User avatar
Umpyre Records
 
Posts: 3436
Joined: Tue Nov 13, 2007 4:19 pm

Post » Mon Jun 18, 2012 11:02 am

You might also be able to use the quest/reference alias functionality to do this. Basically, when he dies, you start a quest, which has a reference alias pointing to him, with the Display Name set to "Krosis Kul's Ghost".

I'm still wrapping my head around this stuff, though, so that may not work, or may not be the best way to do it.
User avatar
Matthew Barrows
 
Posts: 3388
Joined: Thu Jun 28, 2007 11:24 pm

Post » Mon Jun 18, 2012 6:38 pm

I guess using two actors would be the easier way I just need to recode some quests, it's a shame there is no setactorfullname function though.
User avatar
Bee Baby
 
Posts: 3450
Joined: Sun Jun 18, 2006 4:47 am


Return to V - Skyrim