RimWorld

RimWorld

SpeakUp Extension
Microsoft Excel  [developer] 17 May @ 4:32pm
Line Suggestions and XML Tutorials
Got an idea for new dialogue lines and don't know how to make it happen? I'll either show you exactly how to do it, or if you'd rather (and I like the line) just do all the work for you and add it to this mod.
< >
Showing 1-5 of 5 comments
Holgast 18 Jul @ 2:31am 
hey, I always wanted a variable so you can write dialogue in response to a certain type of enemy. like, if you attack or see a hostile of a certain pawndef or something, a certain animal, monster, raiders etc. I thought the possibilities would be fun

(edit: my bad I was thinking of Callouts 😂)
Last edited by Holgast; 18 Jul @ 2:52am
Microsoft Excel  [developer] 18 Jul @ 7:24am 
Good idea. Added.
Holgast 20 Jul @ 12:00am 
thanks, that was quick. I've added some new lines for more of the trees, and dialogue for being in space and all works great. is there already something for leader speeches and other rituals so we can put in dialogue (like, things for the person making the speech to say)?

also, I think you can already do custom dialogue for taming or training a specific animal def right?
Last edited by Holgast; 20 Jul @ 7:08am
Microsoft Excel  [developer] 20 Jul @ 11:55am 
Yeah, there's already taming dialogue in SpeakUp. I think you can use `RECIPIENT_kind` for getting what animal is being tamed like this: (RECIPIENT_kind==vulture)

New interactions like speeches probably just need an injection:
<Operation Class="PatchOperationReplace"> <xpath>/Defs/InteractionDef[defName = "Speech_Duel"]/logRulesInitiator/rulesStrings</xpath> <value> <rulesStrings> <li>r_logentry(priority=1)->"Duels, are pretty cool, right? So let's do one today."</li> (...ect)

That should work for any InteractionDef, but let me know if it doesn't.
Holgast 20 Jul @ 4:11pm 
hmm, so you can just add new lines for any existing interaction in the game without any new C# code? that's pretty cool. I'll fiddle with this some more this week, the possibilities are endless
< >
Showing 1-5 of 5 comments
Per page: 1530 50