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...

Script for If in Faction Set Quest Stage


Vain
 Share

Recommended Posts

I've tried backwards and forwards and Papyrus and I are both so twisted up I can't figure out what I'm doing wrong.

 

Scriptname Vain01SSQCScript extends ObjectReference  
 
Quest Property Vain01SorcererQuest Auto
Faction Property CollegeofWinterholdArchmageFaction
 
Function OnTriggerEnter(ObjectReference akActionRef)
 If Game.Getplayer().GetInFaction(CollegeofWinterholdArchmageFaction) == 1
  Vain01SorcererQuest.SetStage(10)
  Vain01SorcererQuest.SetObjectiveDisplayed(10)
 EndIf
EndFunction

I'm at the point where I'm trying to stick this script on a location trigger.  Player walks into the room triggering the trigger and causing this script to run.  I have another script on a trigger that begins the quest and compiles just fine.

I'm thinking maybe Globals?  A Boolean?  What should I try here?

The errors I'm getting - 

Vain01SSQCScript.psc(6,0): script property CollegeofWinterholdArchmageFaction can only contain get or set functions
Excuse me... I thought GETInFaction was a GET function...  Does the same thing with GetFactionRank which I also tried.
Vain01SSQCScript.psc(0,-1): mismatched input '<EOF>' expecting ENDPROPERTY

I was unaware that you had to end properties at all...  Oh, and how the hell is it reading something written behind the beginning of the document!

 

What I really want to do is have a quest that detects if the player is the Archmage and if so, advance to a specific quest stage.  I've got the quest, just want it to have this functionality.  Thought a trigger in-game would be an easy way to manage this.

Edited by Vain
Link to comment
Share on other sites

Firstly, you only need the ENDPROPERTY if you declare a full property. It's not needed for auto properties.

 

Faction Property CollegeofWinterholdArchmageFaction auto
 

 

GetInFaction is a condition function, the papyrus version is IsInFaction, which returns a bool, not an integer.

 

 If Game.Getplayer().IsInFaction(CollegeofWinterholdArchmageFaction) == true
 

Hope it helps.

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...