The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Existance 2.0 radio convertion problem

General help and troubleshooting.
Post Reply
anstand
Posts: 223
Joined: Tue Feb 11, 2014 10:41 am

Existance 2.0 radio convertion problem

Post by anstand » Sat Nov 28, 2015 2:29 pm

nevermind, found the problem. 


Hey there,


one of the scripts of the mod is not possible to recompile since there is a problem somewhere in the code.


can somebody maybe look at it for a minute and see if there is a syntax error?


Stuff like the note (E20Q01Message00), the quest (RadioExistence20) or the sound (E20Q01PipBoyFX) can be found.



scn E20Q01Script



short QuestBegun

short QuestOver

short DoOnceE20Q01

short DoOnceB

float StartTimer



begin gamemode



if ( DoOnceB == 0 )

    if RadioExistence20.nE20QuestStarted == 1

        set StartTimer to 40

        set DoOnceB to 1

    endif

endif



if ( DoOnceB == 1 )

    if StartTimer <= 0

        addNote E20Q01Message00

        setStage E20Q01 10

        set DoOnceB to 2

    else

        set StartTimer to ( StartTimer - GetSecondsPassed )

    endif

endif



if ( DoOnceB == 2 )

    if player.GetDistance 00018963 <= 1500

        setStage E20Q01 20

        set DoOnceB to 3

    endif

endif



if getStage E20Q01 < 100  && QuestOver < 1

    if player.getHasNote E20Q01Message01

            set QuestOver to 1

            setStage E20Q01 100

      endif

endif



if ( QuestOver == 1 )

    PipBoyRadioOff

    PlaySound E20Q01PipBoyFX

    ShowMessage E20Q01EndMessage

    set QuestOver to 2

    stopQuest E20Q01

endif




end



 



anstand
Posts: 223
Joined: Tue Feb 11, 2014 10:41 am

that line

Post by anstand » Sat Nov 28, 2015 11:27 pm

that line



if ( DoOnceB == 2 )

    if player.GetDistance 00018963 <= 1500

        setStage E20Q01 20

        set DoOnceB to 3

    endif

endif



I checked the references table of the script in FNVEdit and saw a reference which I did not see in the script before and then realized that the 00018963 actually is a formID and not some random number for the measure of the distance (player.GetDistance). 00018963 is the place where the radio tower is located and this landmark changed its formid after being converted for TTW.



User avatar
RoyBatty
Gary
Posts: 7742
Joined: Sun Apr 27, 2014 10:26 am
Location: Vault 108

Give it unique editor id and

Post by RoyBatty » Sun Nov 29, 2015 9:05 am

Give it unique editor id and use that in the script, that's old bad Fallout 3 modding practice to use formid's like that.
Image

Post Reply