Jump to content

Problems with REPLACE_TEXTUALLY, again


temnix

Recommended Posts

However, now this refuses to do anything:

REPLACE_TEXTUALLY ~ActionOverride(\(.+\),LeaveParty())~ %Kill(/1)%

This is for scripts, not dialogues. Dialogues are a lot easier to patch. I don't know why there is no match for the above. The regular expression is there. I'm checking this against Jaheira's script, one of whose lines reads: ActionOverride("Khalid",LeaveParty()).

Link to comment

I got another difficulty with replacement. This code is supposed to look at scripts and replace creatures' incoming teleportation to a point with spawning not far away from the main character and then walking to the point:

REPLACE_TEXTUALLY ~CreateCreatureDoor("\([^"]+\)",\([^"]+\),S)~ ~CreateCreatureObjectOffset("\1",Player1,[-100.-100]) ActionOverride("\1",MoveToPoint(\2))~

Doesn't parse, though. Anyone know what's wrong?

Link to comment

That problem was solved. Now I have a particular troublesome piece of script, which refuses to be replaced even with CASE_INSENSITIVE EXACT_MATCH and backslashes:

REPLACE_TEXTUALLY CASE_INSENSITIVE EXACT_MATCH ~IF
    AreaCheck("AR2200")
    Global("DemonWalks","GLOBAL",5)
    See(\[PC\])
THEN
    RESPONSE #100
        CreateVisualEffectObject("SPPORTAL",Myself)
        DestroySelf()
END~ ~~

Here I'm just checking if I can do anything with the code at all. The tildas are to be filled with the actual replacement later. Ideas?

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