javaplaza Posted September 30, 2019 Share Posted September 30, 2019 Scriptname DFLTOonTriggerEnter extends ObjectReference scene property myscene auto quest property myquest auto int property nextStage auto Event OnTriggerEnter(ObjectReference akTriggerRef) if akTriggerRef == Game.GetPlayer() && myQuest.GetStage() == 10 myQuest.GetStage(nextStage) debug.notification("you entered the trigger area") endif EndEvent hopefully this is self explanitory... here is the error I'm getting.. Starting 1 compile threads for 1 files...Compiling "000onTriggerEnter"...E:\SteamLibrary\steamapps\common\skyrim\Data\Scripts\Source\temp\000onTriggerEnter.psc(9,11): too many arguments passed to functionNo output generated for 000onTriggerEnter, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on 000onTriggerEnter Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 30, 2019 Share Posted September 30, 2019 That error is telling you that you have too many arguments for the GetStage function, this function doesn't have arguments. Are you trying to set a quest stage if so you should use myQuest.SetStage(nextStage) instead. Link to comment Share on other sites More sharing options...
javaplaza Posted September 30, 2019 Author Share Posted September 30, 2019 noim trying to make the trigger only work when the quest is on stage 10 thanks for your reply ! Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 30, 2019 Share Posted September 30, 2019 That part of the script (the if statement) is correct, i meant the first line underneath the if statement Scriptname DFLTOonTriggerEnter extends ObjectReference scene property myscene auto quest property myquest auto int property nextStage auto Event OnTriggerEnter(ObjectReference akTriggerRef) if akTriggerRef == Game.GetPlayer() && myQuest.GetStage() == 10 myQuest.GetStage(nextStage) ;<---- this one debug.notification("you entered the trigger area") endif EndEvent I'm not sure what you are trying to do with that one, the line above it will make sure that anything inside the if statement will only occur if the quest is at stage 10 Link to comment Share on other sites More sharing options...
javaplaza Posted September 30, 2019 Author Share Posted September 30, 2019 wow i saw the error you mentioned.. okay im trying to work this out after fixing it, it still doesn't seem to want to work. Link to comment Share on other sites More sharing options...
javaplaza Posted September 30, 2019 Author Share Posted September 30, 2019 ive moved the script to a quest alias instead of on the trigger itself, and set a condition for the quest being on stage 10. heres the new script. but nothing happens when i enter the trigger area. Scriptname DFLTOonTriggerEnter extends ObjectReference scene property myscene auto quest property myquest auto int property nextStage auto Event OnTriggerEnter(ObjectReference akTriggerRef) if akTriggerRef == Game.GetPlayer() myQuest.setStage(nextStage) debug.notification("you entered the trigger area") endif EndEvent Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 30, 2019 Share Posted September 30, 2019 It still won't compile or the trigger doesn't show the message? Link to comment Share on other sites More sharing options...
javaplaza Posted September 30, 2019 Author Share Posted September 30, 2019 trigger doesn't show the message. im adjusting the alias order, seeing if that helps Link to comment Share on other sites More sharing options...
javaplaza Posted September 30, 2019 Author Share Posted September 30, 2019 yeah nothing is happeningmight take it back off the quest alias, because atleast then, i got the debug message Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 30, 2019 Share Posted September 30, 2019 The script should work when it is on the trigger and all properties are filled correctly.if it still doesn't work check the settings on your trigger (in the primitive tab) activation layer: L_ActorZone do not check player activation. Link to comment Share on other sites More sharing options...
Recommended Posts