Posted by: cmorgan
« on: August 17, 2008, 01:01:21 PM »Yeah, sorry, still asleep. I should delete those posts for stupidity alone.
REPLACE_STATE_TRIGGER.
I guess what I should have been asking is there something akin to
REPLACE_STATE_TRIGGER_REGEXP
where instead of reading all of the state triggers i could just read one, look for a specific text string (like "wyvern") and replace it, so that we are back to the original request -
and it looked like the bigg said yes -
but I have not seen it in the logs, and have not seen what the command would be -
if it isn't possible, there is no problem.
REPLACE_STATE_TRIGGER.
I guess what I should have been asking is there something akin to
REPLACE_STATE_TRIGGER_REGEXP
where instead of reading all of the state triggers i could just read one, look for a specific text string (like "wyvern") and replace it, so that we are back to the original request -
Quote
The problem with REPLACE_TRIGGER_TEXT is that you can't make it work for the triggers of a specific state, it's every trigger in the file or nothing. The text I'm replacing may be perfectly valid in many, even most states, and I may just want to change it in a specific one. That's why a syntax and functionality like REPLACE_TRANS_ACTION, where you can specific BEGIN [statelist] END BEGIN [transition] END ~TextToBeReplaced~ ~NewText~ would rock.
and it looked like the bigg said yes -
Quote
1. OK then. The various REPLACE_* actions all behave differently now anyway (all the file vs. state/trans list, regex vs. destructive replace), so having more inconsistencies won't harm.
but I have not seen it in the logs, and have not seen what the command would be -
if it isn't possible, there is no problem.