Author Topic: Musings about REPLACE_STATE_TRIGGER [solved]  (Read 1305 times)

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Musings about REPLACE_STATE_TRIGGER [solved]
« on: September 10, 2013, 03:27:21 AM »
Nearly all REPLACE_someplace_something commands work the way that you specify ~something to delete~ and ~something new to add~

Only REPLACE_STATE_TRIGGER replaces the whole trigger:

REPLACE_STATE_TRIGGER ~dlgname~ statnumber ~new trigger variables~

For compatibility reaons, I would like to have a non-destructive REPLACE_STATE_TRIGGER_IFONLY

-replace only, if ~something to delete~ is existent, other wise ignore

-in case of adding a trigger to a state: only, if UNLESS ~something else is not there~

Would this be possible?

If parts are already doable by other means, please enlighten me.
« Last Edit: September 10, 2013, 03:55:27 AM by jastey »

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: Feature request: REPLACE_STATE_TRIGGER that only replaces parts
« Reply #1 on: September 10, 2013, 03:28:43 AM »
Well, duh, this was meant to be an edit of the above.  :-[

Nearly all REPLACE_someplace_something commands work the way that you specify ~something to delete~ and ~something new to add~

Only REPLACE_STATE_TRIGGER replaces the whole trigger:

REPLACE_STATE_TRIGGER ~dlgname~ statnumber ~new trigger variables~

For compatibility reaons, I would like to have a non-destructive REPLACE_STATE_TRIGGER_IFONLY

-replace only, if ~something to delete~ is existent, other wise ignore

-in case of adding a trigger to a state: only, if UNLESS ~something else is not there~ [This would be needed if two mods add a new state trigger to a state that didn't have one before, so one doesn't destroy the trigger of the other]

Would this be possible?

If parts are already doable by other means, please enlighten me.

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: Feature request: REPLACE_STATE_TRIGGER that only replaces parts
« Reply #2 on: September 10, 2013, 03:42:53 AM »
If it's not a first state in dialogue, wouldn't an ADD_TRANS_TRIGGER/ADD_STATE_TRIGGER with your own variable work better? You set your variable to 1 if you want it to go the mod way, and to 0 if you want it to go the vanilla game way.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: Feature request: REPLACE_STATE_TRIGGER that only replaces parts
« Reply #3 on: September 10, 2013, 03:48:44 AM »
ADD_STATE_TRIGGER can be useful, but in my case it is not. I need a state trigger to either be True() (my mod) or don't change it (in case the other mod is installed). Yes, I could track the other mod in other means, but what I posted above is an inconsistency in the REPLACE_bla_bla commands as I stated.

REPLACE_TRANS_ACTION e.g. gives the possibility to replace a single action, not destructively replaces all of them. Geat advantage: If the text to be replaced is not there it does nothing.

Wait - ADD_STATE_TRIGGER already exists? Why didn't I spot this when I was searching? :(

OK, it seems ADD_STATE_TRIGGER UNLESS is already implemented and what I need? Gha. Sorry for the bother.
« Last Edit: September 10, 2013, 03:56:01 AM by jastey »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: