Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Better rumor system - where to find ?  (Read 2548 times)

Tilogour

  • Bay Watcher
    • View Profile
Better rumor system - where to find ?
« on: March 13, 2015, 05:53:13 pm »

Could I find anywhere mod that can improve dialogue system and add "slain" tag if I want to tell someone that  I slain dragon (for example)?
(or better - slain and "creature tag" for example "slain human", "slain beast" etc.)
That's so simple and It could be very helpful for me...
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Better rumor system - where to find ?
« Reply #1 on: March 13, 2015, 06:33:46 pm »

No.

EDIT: Wait. That's actually wrong. DFHack can edit keywords.

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Better rumor system - where to find ?
« Reply #2 on: March 13, 2015, 08:30:02 pm »

...you know, after playing with Rum's invoke script, it seems like you can tell it to insert whatever option you want there, with a smarter search option (why oh why does it trim out the "I slew a dragon" for a bunch of "I hear a dragon was at this one place" rumor options?) that perhaps sorted by kills, marching, flight, presence, and so forth... hmmm.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Better rumor system - where to find ?
« Reply #3 on: March 13, 2015, 09:01:53 pm »

Oh ho ho ho, poking around at the values and seeing which were in my last actions while talking to some zombies was enough to do this:


Again, all credit to the folks who made the API and Rumrusher for putting the script together, I just poked at it to test some of the choices as a proof of concept, I'm sure there is a way to tell it to ask for a keyword/provide search options/summarize what you pick, but I'mma have to poke at it a good while longer to figure out what all the pieces in the action > talk > event and such mean.
Code: [Select]
df.global.ui_advmode.conversation.choices[0].choice.type=11
df.global.ui_advmode.conversation.choices[1].choice.type=118
df.global.ui_advmode.conversation.choices[0].title[0].value=("Inquire about any troubles")
df.global.ui_advmode.conversation.choices[0].keywords[0].value=("Troubles")
df.global.ui_advmode.conversation.choices[1].title[0].value=("Summarize conflict")
df.global.ui_advmode.conversation.choices[1].keywords[0].value=("Conflict fight")
Logged

logodaedalus

  • Escaped Lunatic
    • View Profile
Re: Better rumor system - where to find ?
« Reply #4 on: March 19, 2015, 04:52:48 pm »

Wait, can you add a little more detail to what you're talking about in modifying Rumrusher's script? If I were, perhaps maybe perhaps, interested in exploring this and needing a starting point?
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Better rumor system - where to find ?
« Reply #5 on: March 20, 2015, 10:55:39 am »

Rum figured out how to insert the different options and have them respond properly, I took parts of that and entered them manually and got a couple of interesting options from playing with the little bit I posted there. in the code tags. It's kinda hit and miss figuring out what the different values are as far as I can tell, but I'm not quite wizardy enough to figure out how to wrap it in a nice pretty gui with a searchable interface though I get the feeling it would be possible.
Logged

tyrannus007

  • Bay Watcher
    • View Profile
Re: Better rumor system - where to find ?
« Reply #6 on: March 25, 2015, 08:28:06 pm »

Where can I find Rumrusher's original script?
Logged
GENERATION 26:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: Better rumor system - where to find ?
« Reply #7 on: March 26, 2015, 03:48:38 pm »

Oh, the invoke.lua was uhhh... hell, here's the one I've got in my hack/scripts atm:
Code: [Select]
df.global.ui_advmode.conversation.choices[0].choice.type=163
df.global.ui_advmode.conversation.choices[1].choice.type=162
df.global.ui_advmode.conversation.choices[0].title[0].value=("Invoke obediance By using The True Name
df.global.ui_advmode.conversation.choices[0].keywords[0].value=("Bond")
df.global.ui_advmode.conversation.choices[1].title[0].value=("Banish By using The True Name")
--df.global.ui_advmode.conversation.choices[1].keywords[0].value=("MEGAMURDER")
df.global.ui_advmode.conversation.choices[1].keywords[0].value=("Banish")
Logged