Difference between revisions of "User talk:Tibixe"

Jump to navigation Jump to search
573 bytes removed ,  11:19, 16 August 2006
misunderstood
imported>DragoonWraith
m (formatting)
imported>DragoonWraith
(misunderstood)
Line 15: Line 15:


:::[[User:Tibixe|Tibixe]] 10:29, 16 August 2006 (EDT)
:::[[User:Tibixe|Tibixe]] 10:29, 16 August 2006 (EDT)
Not that it '''''also''''' act like a return statement, it acts exactly like it and does nothing else than stops the script for the current frame.
:::Not that it '''''also''''' act like a return statement, it acts exactly like it and does nothing else than stops the script for the current frame.


:::''Reference.SetEssential'' really works? I must try it... I am going to make a scroll with your code, test it on an NPC, and see what happens... I bet it will duplicate forever (if it compiles)
:::''Reference.SetEssential'' really works? I must try it... I am going to make a scroll with your code, test it on an NPC, and see what happens... I bet it will duplicate forever (if it compiles)
Line 23: Line 23:
  Missing parameter ActorBase.  
  Missing parameter ActorBase.  


:::Just as I expected. I think we need that SetRefEssential :)
:::Just as I expected. I think we need that SetRefEssential :) I've got an image of the script and the error message, if you think I made a mistake...
I've got an image of the script and the error message, if you think I made a mistake...


::::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=2>D</font>ragoon <font face="Oblivion,Daedric Runes" size=2>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 12:16, 16 August 2006 (EDT): Ah, you are correct, I screwed up that script (silly of me). And the idea isn't that SetEssential works on references - it's that CreateFullActorCopy creates a new object, not a new reference.
::::[[User:DragoonWraith|<font face="Oblivion,Daedric Runes" size=2>D</font>ragoon <font face="Oblivion,Daedric Runes" size=2>W</font>raith]] [[User_talk:DragoonWraith|<font face="Oblivion,Daedric" size=2>TALK</font>]] 12:19, 16 August 2006 (EDT): Ohhh... I misread that. Sorry. I didn't realize that it wasn't doing what it was supposed to. That needs more investigation, then. Does SetEssential ''ever'' work?
 
::::Try this script, instead (make it a spell, easier testing):
scn EssentializationScript
short state
ref copy
Begin ScriptEffectUpdate  ;same as GameMode
  if ( state == 0 )
    set copy to CreateFullActorCopy
    set state to 1
  elseif ( state == 1 )
    set state to 2
    copy.SetEssential
  elseif ( state == 2 )
    Disable
  endif
End
::::If SetEssential is a return, it won't matter here, since no code needs to run after SetEssential runs (the disable will run on the next frame). I hope that clears things up?

Navigation menu