Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

[SKY] How to add actors to alias?


allidoischill
 Share

Recommended Posts

Hi everyone! So I'm trying to use aliases to get the game to shove new packages onto an actor as the actor is being assigned into a faction and teleported to another room. Here is the script for the button that triggers the stuff.

Scriptname ZCIVbutton1 extends ObjectReference

Faction Property ZCIVFACTIONprisoner Auto

GlobalVariable Property ZCIVinitiate1 auto

ObjectReference Property ZCIVini001 Auto

ObjectReference Property ZCIVprisonmarkerr Auto

EVENT onactivate(objectReference akActionRef)

float mark1 = ZCIVinitiate1.getvalue()

if mark1 == 1

ZCIVinitiate1.Setvalue(0)

Actor closest1 = Game.FindClosestActorFromRef(ZCIVini001, 5.0)

closest1.moveTo(ZCIVprisonmarkerr)

closest1.SetRestrained(false)

closest1.SetFactionRank(ZCIVFACTIONprisoner, 1)

RegisterForSingleUpdate(1)

else

debug.trace("There is no one in cell 1!")

endif

endevent

So the set faction part works and the teleport works, but I still do not understand how to put the actor into the alias list. I thought that registering for single update and having the alias condition require the faction would be enough, but it does not seem to be the case. The location reference thing I put in doesn't seem to be showing up. Is there a papyrus script that I could use that would just stick the actor I am moving right into the quest alias? I have tried reading the tutorials, but they have not been helpful on my specific matter.

Thanks very much!

Link to comment
Share on other sites

  • 4 months later...

You have to have your quest made. 

Open your quest.

Click on alias tab and tell it if your npc is going to be forced (choose a unique character) or is

going to magically appear at a certain stage.

Edited by Ashenfire
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...