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

having some trouble converting RI Primary Needs & am hoping for some help or guidance

General help and troubleshooting.
Post Reply
mccrackin77
Posts: 11
Joined: Thu May 21, 2015 2:42 am

having some trouble converting RI Primary Needs & am hoping for some help or guidance

Post by mccrackin77 » Wed May 17, 2017 5:22 am

Hi


I am having some trouble converting RI Primary Needs & am hoping for some help or guidance. I am getting 1 error message when I try to recompile the scripts. The message says "Invalid Begin/End block structure on line 19" I can see the problem but I don't know how to fix it. I can see that in that Block I have 1 IF and 2 EndIf's. I know that is not the right format for the GECK. I am guessing I need either to add an ElseIf statement or maybe just add an "If" But I don't know what the proper one to use is or the proper form. Here is the script. Any help would be greatly appreciated.


Thanks



ScriptName RIPortableMatScript

short iAdjusted

short iActivate

short CurAngle



begin GameMode

    if iAdjusted == 0

        set iAdjusted to 1

        set CurAngle to GetAngle z

        SetAngle z CurAngle



        SetScale 0.1

        Activate Player

        Set iActivate to 1

        Return

    endif(iActivate == 1)

        Disable

        MarkForDelete

    EndIF

end



begin OnActivate Player

    Activate

end




Post Reply