Direct thoughts

Started by Shinzy, August 06, 2014, 02:26:56 PM

Previous topic - Next topic

Shinzy

Alloo!
how would I go about having an equipped item inject a direct thought into you
similar to fine/lavish meals?

say if you were to have a electrical flyswatter as a weapon and it gives you 'I'm fairly sure I just got shocked' debuff

or an armor that pumps you full of formaldehyde or antihistamine or something
'I feel really, really, really weird.'

I tried to look awhile but came with no answers. Most of my ideas are way beyond my capabilities to bring into reality atm =P Slightly frustrating

I'd ask you about the Thought predicates aswell but, they seem flat out too tricky
to be handled through the xml alone

Jessi

A curious little creature...

Haplo

#2
You have to do some .dll coding for it.
As far as I know you can't do this via XML modding, sorry.

Edit:
If you have a specific idea, I can look if I can make you something for it, or help a bit if you like to.

Shinzy

#3
Quote from: Haplo on August 07, 2014, 06:55:06 AM
You have to do some .dll coding for it.
As far as I know you can't do this via XML modding, sorry.

Edit:
If you have a specific idea, I can look if I can make you something for it, or help a bit if you like to.

Yes, basically I wanted to have specific armor(s) add thought when equipped
For example like
  <ThoughtDef>
    <defName>AdrenalineInjection</defName>
    <label>Doped up</label>
    <description>I do love the smell of napalm in the morning</description>
    <baseMoodEffect>+8</baseMoodEffect>
    <activePredicate>ThoughtPredicates.Equip</activePredicate>
  </ThoughtDef>


Though I think if I were to make a thought predicate for equipping apparel
the thought would pop up everytime no matter which piece you wear

Do you think it would be possible to have a certain thought predicate activate the thought only when you have that one specific armor equipped

Cause I have like what two, three different pieces of armor that I want to have
each give different thoughts for the entire time they're being worn

or alternatively just give counter thoughts to the existing ones like
'Wounded' but then the say 'Can't feel pain' triggers from the same predicate
but only when you have the apparel equipped

I'm not overly afraid of touching dll code but I'm a sucky noob =P
I might not make head or tail out of it so I'd need huge amounts of help to even scratch the surface

Or I could just make an edible armor that gives you the
<eatenDirectThought>AteLavishMeal</eatenDirectThought>
=P
Just being stuck on adjusting only the speed and damage reduction in armor is
somewhat lame, as I can't really make anything new that would bring anything useful to the table. Just making vanity items isn't as appealing compared to something that could actually make a difference in the gameplay