Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

I've been bashing my head up against the wall trying to get it to work with choices too haha, then trying to exclude certain menus, but I can't quite figure it out. 

As a work around, I've updated the file with a text tag you can use to exclude the individual keywords from the tooltip system. So if you update inline_tooltip.rpy, hopefully you can just:

menu:
    "Something something {notooltip}elf{/notooltip} blah blah":

to have certain phrases excluded in menus. A hacky work around, but it does work in my testing. Hopefully this works alright for your purposes, even if its a pain to markup.

(8 edits)

Ah I see! Well, this works perfectly as a workaround, so I'm more than happy. Thank you so very much. I didn't want to bother you and tried to fix it myself, but I'm only good at scavenging others' code and smacking it a few times using minor changes  at the very best, lol. 

Thanks a ton again! I'll edit my post and report back after some quick tests.

EDIT:

It seems to throw an error with other text tags in the menu option like bold tags, but works otherwise. I tossed the error in another post if it helps.

(3 edits)

Edit: Corrected Below.

(+1)

Hrmm, this works fine, no matter the order of other tags (bold, italics, etc) in my testing. What does the actual line look like for this choice in the menu?

(3 edits)

Edit: Corrected Below.

(2 edits)

I figured out the problem, been tinkering for a solution. It doesn't seem to like escape characters such as [[ which allows you to use brackets in strings.


Edit:

Got it to work. I just commented out 

text = renpy.substitute(text)

inside replace_tooltip(). It's still ignoring pieces surrounded by the new tag, correctly displaying the usual tooltips, and no longer throwing an error for [[. Not sure if this will bite my arse down the line but it seems to be working great for the moment.


Sorry for the trouble and thank you for all your help and work!