Jump to content

okay, I got one for real this time: perpetual script needs closing


Awachi

Recommended Posts

I'll be damned if being wrong once (or more) will stop me trying to contribute.

BG2 and BG2EE.  AR0406.  There's a guard (Actor 13 using GUARD1.CRE) that is assigned the Specifics script GUARD1A.BCS.  This moves him out of the way when Lehtinan gives Charname permission to the back rooms.  However, there is no check once he's moved, so he stays active(?).

This is what the code could/should be (with new lines commented):

IF
	Global("Backroom","GLOBAL",1)
	Allegiance(Myself,NEUTRAL)
	Global("f4imoved","LOCALS",0)	//	new
THEN
	RESPONSE #100
		MoveToPoint([1320.1507])
		SetGlobal("f4imoved","LOCALS",1)	//	new
END

 

Edited by Awachi
Link to comment

Well, bless my knickers. Never realized that. 

Funny thing is that ammo really would benefit more from a damage boost more than thac0

Link to comment

The replies are for the previous initial post.  Didn't want to clog up the queue with another thread in case I am wrong again.  I'm not used to no "delete" thread/reply option.  My instincts are often haphazard.

Link to comment

I noticed after I posted. It's a fun read. "What are they talking about? Why does everyone know what to reply to?" 😆

If the original script block doesn't have a check variable then indeed, the poor guy will execute that script every time his script is called.

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...