Jump to content


Photo

Newbie questions about REPLACE


  • Please log in to reply
2 replies to this topic

#1 Loriel

Loriel
  • Member
  • 57 posts

Posted 23 May 2003 - 12:46 AM

Ok, I think I understand how this is used for dialog files:

REPLACE ~mydialog~
IF ~~ THEN BEGIN 3
SAY ~blah~
IF ~~ THEN REPLY ~blah, blah~
IF ~~ THEN REPLY ~blah some more~
etc...

This would replace the component labeled 3 with the text after that. So, is it the the state label 3 that designates what is to be replaced? In other words, how does weidu distinguish between the what is to be replaced, and what it is being replaced with?

How could I make this work for BAF files, then? Since there are no states (I think that's what they are called), then how would I tell weidu to open a BAF file, find the text I specify, then replace it with the new text?

#2 weimer

weimer
  • Member
  • 1569 posts

Posted 23 May 2003 - 01:08 AM

Q1: It's done by the state label. Basically, you are defining a new state 3 that it written over the old state 3. That's how I tell what to replace.

Q2: http://www.cs.berkel...PLACE_BCS_BLOCK

Ease has an example:

COPY_EXISTING ~baldur.bcs~ ~override/baldur.bcs~
  REPLACE_BCS_BLOCK ~ease/harpell/bad.bcs~ ~ease/harpell/good.bcs~


#3 Loriel

Loriel
  • Member
  • 57 posts

Posted 23 May 2003 - 01:29 AM

Thanks, I read about that in the readme, but i didn't quite understand it. I learn better by example, though, so I will check the example you gave from ease. Besides, copy/paste is my favorite type of editing!