Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - PieCat

#1
Mods / Re: Making pawns explode on death
July 22, 2021, 03:30:15 AM
Like I said before, I am really bad at explaining things. I did not ask to be given a tutorial I was... ugh I give up trying to explain things with my pea sized brain, I'm just going to try and figure this out myself, and probably give myself a headache doing so. Don't know why I thought I'd be able to explain things when I can barley understand what I'm doing myself. I probably sound like an idiot.
And yea, the Vanilla Traits trait looks like it'd be able to help.
#2
Mods / Re: Making pawns explode on death
July 22, 2021, 01:48:29 AM
I want to make a pawn that has a custom trait explode on death. There are animals that explode on death, I know. But I can't exactly copy the explosion code of a Boomalope into a trait, because it doesn't work that way (I tried, the code gives an error and is ignored). Now since I am only mediocre at codding, and there is practically no tutorials for modding the game (only a thing for a gun and an animal) I have no idea how to check if a pawn is dead, if they have a trait, or how to have them explode once those checks are complete. Now, I am an idiot sometimes, so if there is something obvious I missed, tell me, otherwise I will keep looking to see if I can find some sort of obscure tutorial that actually helps.
#3
Mods / Re: Making pawns explode on death
July 21, 2021, 03:25:19 AM
I... was actually being dumb. I am sorry for wasting your time with this topic. Also,
Quotewhat fields (options) TraitDef can hold?
this is what I meant about documentation. Cause I can't find things like this anywhere.

Quoteis there are any trait, condition, health effect or anything like that, that have any effect on pawn relationships?
I couldn't find any list of these. Albeit I only looked for traits and DID find a list(https://github.com/RimWorld-zh/RimWorld-Core), but it was from 3 years ago, and the traits that can give a relationship penalty or bonus don't seem to be there.

But yeah, I should have looked for things like that harder. I don't seem to think things through a lot.
#4
Mods / Re: Making pawns explode on death
July 21, 2021, 01:52:55 AM
I am really bad at explaining things, but here is my attempt

There isn't anything explaining how exactly to make mods, for example, https://rimworldwiki.com/wiki/Modding_Tutorials(and other things it links to) shows how to make the setup for a mod, but nothing like, how to make a trait (Albeit that is pretty simple, but should still be explained so you don't have to read the code for other traits to figure out how to add stuff)
I tried google searching but nothing for making a pawn dislike another one, and for explosions, I found one but it was for objects, and I don't know enough of how modding this game works to know how to 1. check if a pawn has a trait or 2. if they are dead. I don't even know how to check things like that cause, nothing tells you how to even check for things on a pawn, just a gun mod(https://rimworldwiki.com/wiki/Plague_Gun_(1.1)), that, while useful for, well, a gun, isn't useful for traits.

I... didn't attempt do make anything on my own because I didn't know where to start.

You saying that they "are literally single minute to solve both" made me feel kinda dumb, so sorry if I sound a bit defensive. However if I missed something, or actually am dumb, please tell me.
#5
Mods / Making pawns explode on death
July 21, 2021, 12:13:51 AM
There is almost no documentation for modding this game, so by using the Modding Tutorials on the wiki and copying code from other mods, I managed to make a basic trait with stat offsets and such.

How would one make a pawn who has such trait explode on death?

Side-note, how would one make it so other pawns dislike said pawn?