Help! Declaring References

Post » Mon Jun 18, 2012 11:42 am

Is it possible to declare a reference like in OB and FO? Also, it the "set" function still in too? Or is there something similar?
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Mon Jun 18, 2012 12:16 pm

I'm not sure, but perhaps this should be in the creation kit sub-forum?
User avatar
courtnay
 
Posts: 3412
Joined: Sun Nov 05, 2006 8:49 pm

Post » Mon Jun 18, 2012 6:09 pm

Maybe I could be clearer. In Oblivion, you can do this:

Scriptname Blah Blah;Ref Awesome;Set Awesome to Player.GetCombatTarget.........

Is there something similar in Papyrus?
User avatar
Alexandra Louise Taylor
 
Posts: 3449
Joined: Mon Aug 07, 2006 1:48 pm

Post » Mon Jun 18, 2012 8:11 pm

In Papyrus, that would look like this:
ScriptName BlahBlah ; extends something, most likelyObjectReference Awesome; In some event or other function...Awesome = Game.GetPlayer().GetCombatTarget
I'm not sure how well that function works with the player in Skyrim, though.

It sounds like you'll want to read up a bit more on http://www.creationkit.com/Category:Papyrus a bit before you try writing anything.

Cipscis
User avatar
Judy Lynch
 
Posts: 3504
Joined: Fri Oct 20, 2006 8:31 am

Post » Mon Jun 18, 2012 1:47 pm

In Papyrus, that would look like this:
ScriptName BlahBlah ; extends something, most likelyObjectReference Awesome; In some event or other function...Awesome = Game.GetPlayer().GetCombatTarget
I'm not sure how well that function works with the player in Skyrim, though.

It sounds like you'll want to read up a bit more on http://www.creationkit.com/Category:Papyrus a bit before you try writing anything.

Cipscis

Thank you so much. Yeah I know, I was excellent at Oblivion and Fallout scripting, but I can't find my ground in Papyrus.
User avatar
Natalie J Webster
 
Posts: 3488
Joined: Tue Jul 25, 2006 1:35 pm


Return to V - Skyrim