Jump to content

[LE] Help with script for onTriggerEnter ?


javaplaza

Recommended Posts

there is another error in the script you wrote the myquest variable differently in the property declaration from the SetStage line (myQuest) These need to be the same.
The second script you posted also doesn't check for stage 10 anymore (assuming this was done for testing).

Edited by LoneRaptor
Link to comment
Share on other sites

 

 

there is another error in the script you wrote the myquest variable differently in the property declaration from the SetStage line (myQuest) These need to be the same.

i dont understand

 

 

 

The second script you posted also doesn't check for stage 10 anymore (assuming this was done for testing).

no i just kinda gave up on that, assuming the player wont be in this area before they need to be.

 

Link to comment
Share on other sites

Like this:

 

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  ;changed myQuest to myquest 
            myquest .SetStage(nextStage)    ; changed myQuest to myquest 
            debug.notification("you entered the trigger area")
        endif
EndEvent

 

try checking the quest stage in game after you get the debug message to confirm it is actually getting changed.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...