How to set "HasBeenEaten" to true?

Post » Tue Jun 19, 2012 1:08 pm

As the tittle says, I am looking for a way to set an actor's condition "HasBeenEaten" to 1.
Namira's ring script does not have such function, so I expect it to be a part of StartCannibal.


Tried the following and ended up with errors:


akTarget.HasBeenEaten true
(12,9): no viable alternative at input 'HasBeenEaten'

akTarget.HasBeenEaten(1)
(12,0): variable akTarget is undefined
(12,9): none is not a known user-defined type

akTarget.HasBeenEaten = 1
(12,0): variable akTarget is undefined
(12,9): none is not a known user-defined type
(12,8): type mismatch while assigning to a none (cast missing or types unrelated)
Anyone has any idea of how it works?
User avatar
Kathryn Medows
 
Posts: 3547
Joined: Sun Nov 19, 2006 12:10 pm

Post » Tue Jun 19, 2012 4:43 pm

Try this
if (akTarget.HasBeenEaten()==true);do somethingendif
User avatar
Cameron Garrod
 
Posts: 3427
Joined: Sat Jun 30, 2007 7:46 am

Post » Tue Jun 19, 2012 2:11 pm

Thanks for the reply.

I am trying to give the target "eaten" state, so I tried:

akTarget.HasBeenEaten()==true

Error:

(12,0): variable akTarget is undefined
(12,9): none is not a known user-defined type
(12,23): cannot compare a none to a bool (cast missing or types unrelated)
User avatar
Chris Jones
 
Posts: 3435
Joined: Wed May 09, 2007 3:11 am

Post » Tue Jun 19, 2012 4:26 pm

HasBeenEaten is a http://www.creationkit.com/Category:Condition_Functions, not a papyrus function.

I believe it may be stored as Variable07 in the http://www.creationkit.com/Actor_Value.

TargetNPCRef.getActorValue( "Variable07" )

Try testing that AV before and after feeding on an NPC whilst a vampire.
User avatar
Nicole Coucopoulos
 
Posts: 3484
Joined: Fri Feb 23, 2007 4:09 am


Return to V - Skyrim