Offhand, I can’t think of any quick or easy way to go through a game’s code and edit it to allow a new function you want, even though the function itself should be quite easy on an individual instance level.
Here’s how I would do it:
I’d start with a boolean variable (something like *create italics true
.) I’d then offer a *choice
or *fake_choice
at the beginning of the game so players could allow the variable to remain true, or switch it to false.
Then I’d use the Find function of whatever text editor I was using to write the game to jump to each use of italics without spending the time scrolling through and re-reading it all.
Finally, at each instance of italics use, I’d replace the [i]italic text[/i]
with the following structure:
@{variable_name [i]this_displays_if_true[/i] | this_displays_if_false}
In practice it may look something like this: "She said @{italics [i]what?![/i]|what!?}" Jamie shrieked as she jumped out of her chair.