RimWorld

RimWorld

A RimWorld of Magic
TheZombiecam Sep 11, 2021 @ 12:22pm
Undead Mages?
I recently started a necromancer playthrough, my plan is to go full evil sorcerer with only my necromancer and their undead servants attacking travelers and nearby settlements. So far it's gone well, but I realized I could gift my undead magic using the magic-granting ritual added alongside ideology, however having them read a tome leads to them being unable to use spells due to having no mana. Any chance 'uplifting' your undead with magic could be added as a feature to the mod? Awesome mod nonetheless.
< >
Showing 1-5 of 5 comments
Justin Sellers Oct 24, 2021 @ 7:58pm 
Resurrect them using dev mode and then use character editor and change the stats to match?
Crowbot Oct 31, 2021 @ 7:19am 
Hmm, I wonder if Robes of the Archmage, which gives +25 mana could fix this?
Val Dec 16, 2021 @ 2:25am 
Does anyone know what I would need to edit to allow the raise undead to keep their shooting ability? It would also be cool if they could keep their martial classes but I am not sure if that is possible. Does anyone know what is forcing the stat changes to shooting etc?
Rtillery Jan 15, 2022 @ 3:49pm 
I'm not entirely sure the entire process but a few things I've noticed when raising the undead (again not a hard confirm, I'm too lazy to get into the actual code atm, but something that i've noticed seems to be happening) When you use raise undead it seems to wipe all traits and replaces them with psychopath and undead, the stats also get set in a hard line so things like shooting always drop to 0 but if your Necromancer/Lich is leveled and the target has a double passion in one of the skills that remain like melee (or any of the ones that aren't coded to drop to 0, i think) then it seems to set the stat to about 15. However there seems to be a way to bump the stats up after you've raised them and then when they get raised again they keep that stat bump (I have not tried this with traits or the shooting skill, its possible they continue getting overridden every time you ressurect but you can try this and let us know. (Undead dont get to learn anything so you cant artificially raise them with training that I know of right now)

Step 1: Raise your undead (I like to draft them immediately so everyone stands in a line and wont run off immediately)

Step 2: Turn on Dev mode (under options) and push " / " to pull up the dev menu

Step 3: Select Set Skill (search bar top left) choose your stat (I choose Melee and Mining but every stat can be chosen) then choose what level you want the stat to be at. ( Choosing Max Skill has no effect, you have to do Set Skill for everything here)

Step 4: Left click on every undead (after they have been raised) to apply the Set Skill change (their character will shift slightly when you succeed on clicking on them)
The skill should be raised or lowered to the number you chose.

After that you can dismiss and raise them like normal and they keep the stat change (at least in Melee and in Mining, again haven't tried shooting but it should work since it doesn't appear to reset every time only the very first time your raise them)

I'm not sure if this works with traits but if you choose add trait you should be able to manually give them ones, if its the physical classes that your aiming for and not just a trait (though they are tied to traits so it should work) you could try doing it in-game with the gems and manuals too but like op said they may not have the resource to actually pull anything off.

Things like mana regen and other stats you gain from items (The traits/classes also seem to add the appropriate ones in, under themselves) are considered hediffs so you could try manually adding them in using the add hediff command as a way to artificially work around that but I haven't tried doing this either and I don't know if it would stick on dismissing and re-raising them.

(I'm willing to test the traits/hediffs in my current save if anyone wants me to and report my findings)
Last edited by Rtillery; Jan 15, 2022 @ 3:57pm
Molzzok Jan 22, 2022 @ 11:50am 
OK so lets start off by saying I am not anywhere near smart enough to get this to completion BUT I made a variant of the "Projectile_RaiseUndead" (That's what the "Raise Undead" spell uses to make undead)

The variant I made makes it so any undead created with it has the "Magically Gifted" trait and has the ability to become any Mage class with access to Mana (Should work with the Physical Trait as well because it can have Stamina but the variant I made does not give the Physical trait)

As far as my knowledge goes the undead created via the thing I made work the same as normal ones but with access to classes.

A problem I ran into is making the XML for a spell using the thing I made...I don't know how XML works so I can't really make it...

Also as I am not really a mod creator or have any knowledge other then the basics I don't know to how make the edit I made a separate mod that is dependent on the Rimworld of Magic.

If anyone can help me figure out those to problems then I can release what I made as a add-on to the Rimworld of Magic because I would love to have undead mages...

If I never get this working fully then all I can do Is hope that Torann adds a spell to the base mod cause hes way ♥♥♥♥♥♥♥ smarter then me.


Update to previous statements...

So I just tried to make a seperate mod for this one spell and it turns out one of the things that is uses "HediffComp_Undead" is a "internal class" and from what I can tell that means I can't use it in my own code...oh the JOYS of coding...

please someone end my suffering.
Last edited by Molzzok; Jan 22, 2022 @ 12:41pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50