Jump to content

Questions about GetDistance and the use of markers.


JcHARP

Recommended Posts

Ok so I have been using Getdistance on my quest scripts and at first it started working. Now I have to shutdown my game reload it and it then works for that one instance. I need to be standing near in the radius of it to tell my quest script to go to the next stage. Here is what my script for quest two is:

 

 

 

SCN NVContractsQS02

Short DoOnce
Short DoOnce2

Begin GameMode

        If NVContractsQuestMarkerREF1.GetDistance Player <= 1500 && GetStage NVContractsQ02 >= 0
            SetStage NVContractsQ02 5
            NVContractsTylerMarrowREF.enable
            AddTopic NVContractsBillyAssociateConvoTopic01
        endif

        If NVContractsQ02MarkerRefSH1.GetDistance Player <= 2500 && GetStage NVContractsQ02 >= 15 && GetStage NVContractsQ02 <= 150
            SetStage NVContractsQ02 20
        endif

        If GetStage NVContractsQ02 == 25
            AddTopic NVContractsReceptionistConvoTopic01
        endif

        If GetStage NVContractsQ02 == 30    
            AddTopic NVContractsPizanoConvoTopic01
        endif

        If DoOnce2 == 0 && GetStage NVContractsQ02 >= 150
            NVContractsMadGuardRef.EVP
            Set DoOnce2 to 1
        endif

If NVContractsBunkerMarkerRef1 Player <= 1500 && GetStage NVContractsQ02 >= 40 && GetStage NVContractsQ02 < 150
            SetStage NVContractsQ02 45
            NVContractsBunkerDoorRef.Unlock
            AddTopic NVContractsBillyOldenTopic01
        endif

end
 

What am I doing wrong. I've read the geck wiki and I seem to be doing it right to a point but, its not working as I intended it.

Link to comment
Share on other sites

If NVContractsBunkerMarkerRef1 Player <= 1500 && GetStage NVContractsQ02 >= 40 && GetStage NVContractsQ02 < 150
SetStage NVContractsQ02 45
NVContractsBunkerDoorRef.Unlock
AddTopic NVContractsBillyOldenTopic01
endif
You don't actually call getDistance in that condition, for one thing. Also if you did, that code group would run every frame; I suspect you meant that as 'getStage NVContractsQ02 <= 40'. No other obvious errors that I detect.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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