Jump to content

Report bugs and typos here.


Glam Vrock

Recommended Posts

There is a syntax error in the FW0511 baf

 

IF
Global("GV#CORPSExists","%DurlagsTower_D1%",0)
THEN
RESPONSE #100
SetGlobal("GV#CORPSExists","%DurlagsTower_D1%",1)
CreateCreature("gv#corps",[1660.1430],0)
Continue()
END

 

On my playthrough experience it caused substantial lag until I 'fixed' by changing %Durla value into GLOBAL

 

Spoiler

IF
Global("GV#CORPSExists","GLOBAL",0)
THEN
RESPONSE #100
SetGlobal("GV#CORPSExists","GLOBAL",1)
CreateCreature("gv#corps",[1660.1430],0)
Continue()
END

 

Link to comment
32 minutes ago, Connelly said:

I had read the whole thing as the EVAL being the correct fix pre install and not Zelasko's global. Thanks.

What happens without the EVAL during compilation is that the installer writes "%DurlagsTower_D1%" as the variable type. Since this doesn't make sense (type not defined), "no" variable is set and the script starts looping.

I'd suggest for a game that was already started, replacing it with "MYAREA", that should do the trick, i.e.

IF
Global("GV#CORPSExists","MYAREA",0)
THEN
RESPONSE #100
SetGlobal("GV#CORPSExists","MYAREA",1)
CreateCreature("gv#corps",[1660.1430],0)
Continue()
END
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...