Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: One Last modtools/create-unit Problem  (Read 1439 times)

DaSwayza

  • Bay Watcher
    • View Profile
One Last modtools/create-unit Problem
« on: August 22, 2018, 08:44:10 pm »

So I want to make a vampire. I know how to use the code to make creatures, but I don't know how to add a tag for vampirism. I haven't found anything yet on it. Help?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: One Last modtools/create-unit Problem
« Reply #1 on: August 23, 2018, 01:45:38 am »

You need to use add-syndrome on top of that. I don't remember what the vampire syndromes' generated names are.

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: One Last modtools/create-unit Problem
« Reply #2 on: August 23, 2018, 01:49:01 am »

IDK if this helps, but the vampire interaction example in the raws folder contains this:
Code: [Select]
[CE_ADD_TAG:BLOODSUCKER:NO_AGING:STERILE:NOT_LIVING:NOEXERT:NOPAIN:NOBREATHE:NOSTUN:NONAUSEA:NO_DIZZINESS:NO_FEVERS:PARALYZEIMMUNE:NO_EAT:NO_DRINK:NO_SLEEP:NO_PHYS_ATT_GAIN:NO_PHYS_ATT_RUST:START:0]
[CE_PHYS_ATT_CHANGE:STRENGTH:200:0:AGILITY:200:0:TOUGHNESS:200:0:START:0]
[CE_MATERIAL_FORCE_MULTIPLIER:MAT_MULT:NONE:NONE:1:2]
[CE_BODY_MAT_INTERACTION:MAT_TOKEN:RESERVED_BLOOD:START:0]
[CE:INTERACTION:VAMPIRE_CURSE]
[CE:SYNDROME_TAG:SYN_INGESTED]
[CE:SYNDROME_TAG:SYN_INJECTED]
[CE_DISPLAY_TILE:TILE:165:4:0:0:START:0:CAN_BE_HIDDEN]
[CE_DISPLAY_NAME:NAME:vampire:vampires:vampiric:START:0:CAN_BE_HIDDEN]
[CE_BP_APPEARANCE_MODIFIER:START:0:BP:BY_CATEGORY:TOOTH:APPEARANCE_MODIFIER:LENGTH:150]
[CE:COUNTER_TRIGGER:DRINKING_BLOOD:1:NONE:REQUIRED]
[CE_SENSE_CREATURE_CLASS:START:0:CLASS:GENERAL_POISON:15:4:0:1]
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Nahere

  • Bay Watcher
    • View Profile
Re: One Last modtools/create-unit Problem
« Reply #3 on: August 23, 2018, 02:17:56 am »

Generated vampire interactions have IDs like this: DEITY_CURSE_VAMPIRE_1, but add-syndrome asks for the SYN_NAME, which generated vampire syndromes don't actually have. Your best bet would be to make your own vampire interaction based on the example given.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: One Last modtools/create-unit Problem
« Reply #4 on: August 23, 2018, 02:18:44 am »

add-syndrome asks for the SYN_NAME, which generated vampire syndromes don't actually have.

that's a pretty terrible oversight, actually? should be able to take the ID

EDIT: forgot interactions have IDs but syndromes don't, hmm
« Last Edit: August 23, 2018, 02:21:29 am by Putnam »
Logged

Boltgun

  • Bay Watcher
  • [UTTERANCES]
    • View Profile
Re: One Last modtools/create-unit Problem
« Reply #5 on: August 23, 2018, 03:06:35 am »

It's better to add you own vampire syndrome (you can copy one from a non compressed save) as world generated creatures or syndromes are not guaranteed to exist.

Then in a script put both create-unit and add-syndrome. Create-unit can return the id of your freshly spawned creature.
Logged