Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help with modding in Majicks  (Read 946 times)

Captain Crazy

  • Bay Watcher
    • View Profile
Help with modding in Majicks
« on: March 11, 2012, 09:36:15 pm »

I'm working on a multi-caste race of magical, evil Flayers. So far, the fire-based Infernal Flayer works fine, and can cast fire based spells (none by me, they were interactions usable by Imps and Dragons).

The second caste, Dark Flayers, are not working as well. The spell "Slade Shot" (a spell in which a glob of solid slade is fired) does not show up, neither does "Cast Unconciousness". Only "Cast Blisters" shows up, and that fails to cause any blisters at all.

Flayer Raws
Code: [Select]
creature_flayer

[OBJECT:CREATURE]

[CREATURE:FLAYER]
[DESCRIPTION:An otherworldly creature with powerful magic. Beware!]
[NAME:flayer:flayers:flayer]
[CASTE_NAME:flayer:flayers:flayer]
[CREATURE_TILE:'F'][COLOR:5:0:1]
[NATURAL]
[EVIL]
[INTELLIGENT]
[CANOPENDOORS]
[BONECARN][NO_DRINK][NO_EAT]
[NO_DRINK]
[POPULATION_NUMBER:50:100]
[PREFSTRING:intelligence]
[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:TONGUE:FACIAL_FEATURES:TEETH:RIBCAGE]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:CHITIN:CHITIN_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:HAIR]
[USE_TISSUE_TEMPLATE:CHITIN:CHITIN_TEMPLATE]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:CHITIN:CHITIN]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[STATE_COLOR:ALL:BLUE] copper not iron based
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[BODY_SIZE:0:0:70000]
[MAXAGE:1200:12000]
[NO_SLEEP]
[NO_DIZZINESS]
[CASTE:FIRE]
[CASTE_NAME:infernal flayer:infernal flayers:infernal flayer]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Cast Dragonfire]
[CDI:USAGE_HINT:ATTACK]
[CDI:FLOW:DRAGONFIRE]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:50]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Cast Fireball]
[CDI:USAGE_HINT:ATTACK]
[CDI:FLOW:FIREBALL]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:5]
[CDI:WAIT_PERIOD:30]
[CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Cast Fire Jet]
[CDI:USAGE_HINT:ATTACK]
[CDI:FLOW:FIREJET]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:5]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:30]
[CASTE:DARK]
[CASTE_NAME:dark flayer:dark flayers:dark flayer]
  [CAN_DO_INTERACTION:MATERIAL_EMISSION]
[CDI:ADV_NAME:Cast Sladeshot]
[CDI:USAGE_HINT:ATTACK]
[CDI:MATERIAL:INORGANIC:SLADE:SOLID_GLOB]
[CDI:TARGET:C:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:C:15]
[CDI:MAX_TARGET_NUMBER:C:1]
[CDI:WAIT_PERIOD:150]
[CE_CAN_DO_INTERACTION:UNCONC]
[CDI:ADV_NAME:Cast Unconciousness]
[CDI:INTERACTION:UNCONC]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:20]
[CDI:VERB:gesture:gestures:NA]
[CDI:TARGET_VERB:fall unconcious:falls unconcious]
[CDI:WAIT_PERIOD:10]
[CE_CAN_DO_INTERACTION:BLISTERS]
[CDI:ADV_NAME:Cast Blisters]
[CDI:INTERACTION:BLISTERS]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:20]
[CDI:VERB:gesture:gestures:NA]
[CDI:TARGET_VERB:break out into blisters:breaks out into blisters]
[CDI:WAIT_PERIOD:30]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:PINK:1]
[TLCM_NOUN:skin:SINGULAR]


Raws for the new interactions

Code: [Select]
interaction_flayer

[OBJECT:INTERACTION]

[INTERACTION:UNCONC]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:Select targets]
[I_EFFECT:ADD_SYNDROME]
[SYN_NAME:unconciousness]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[CE_UNCONSCIOUSNESS:100:PROB:100:START:1:PEAK:30:END:1200]

[INTERACTION:BLISTERS]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_MANUAL_INPUT:Select targets]
[I_EFFECT:ADD_SYNDROME]
[SYN_NAME:evil blisters]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[CE_BLISTERS:200:PROB:100:START:1:PEAK:30:END:1200]




Help would be appreciated. You guys have been a great, helpful bunch of people time and time again and I hope some seasoned modders can point out why Dark Flayers do not work as expected.
Logged
Quote
I usually think of Armok as the pure essence of FUCK YOU!

Alem

  • Bay Watcher
    • View Profile
Re: Help with modding in Majicks
« Reply #1 on: March 12, 2012, 01:50:49 am »

I definitely do not qualify as a seasoned modder, but I'll try to help out as best I can.

First thing I'd recommend is posting your error log, you would not beleive how much that alone helps. With that in mind, it appears you are missing the SEV tag for unconsciousness and blisters. I don't know for certain if it can operate without that token but I would assume not. I can't see why the slade shot isn't showing up, but again I'm not too seasoned on this.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Help with modding in Majicks
« Reply #2 on: March 12, 2012, 04:24:26 pm »

You have written CE_CAN_DO_INTERACTION a few time when you only should have used: CAN_DO_INTERACTION, without the CE_ in front.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Steele

  • Bay Watcher
    • View Profile
Re: Help with modding in Majicks
« Reply #3 on: March 12, 2012, 05:35:48 pm »

Are you sure sladeshot isn't working for you?
I tested your creature, and sladeshot worked just fine for me without edits.
In fact..
Quote
Flayer 1 gestures!
You fall unconscious!

Flayer 1 breathes a glob of slade!
The spinning slade strikes You in the head, bruising the muscle, jamming the skull through the brain and tearing the brain!

You have been shot and killed.

Meph has already addressed the CAN_DO_INTERACTION issue.
[CDI:INTERACTION:BLISTERS] and [CDI:INTERACTION:UNCONC] aren't needed.

As Alem said, you're missing the SEV tag for blisters and unconsciousness, and you haven't defined a body part for the blisters to affect.
SYN_NAME needs to be placed under [SYNDROME] to work.
These are working edits;

Spoiler (click to show/hide)

Spoiler (click to show/hide)

I just used BODY_UPPER as an example for blisters, you can change that to any other body part you want, and add more if desired.
Also, it can take a while for the blistering to start.
« Last Edit: March 12, 2012, 05:39:50 pm by Steele »
Logged

Captain Crazy

  • Bay Watcher
    • View Profile
Re: Help with modding in Majicks
« Reply #4 on: March 12, 2012, 06:34:00 pm »

You rock! Now to find where blistering would be the worst...
Logged
Quote
I usually think of Armok as the pure essence of FUCK YOU!

Captain Crazy

  • Bay Watcher
    • View Profile
Re: Help with modding in Majicks
« Reply #5 on: March 12, 2012, 08:04:55 pm »

Would it be possible for these skills to be learned via deity-made tablets? If so, would they be in necromancer towers or other places?

I'd love to have an adventurer that acquires Slade Shot, but not be a rubbery pink Flayer. And would it be possible to learn a spell if you're already a necromancer?
« Last Edit: March 12, 2012, 08:07:01 pm by Captain Crazy »
Logged
Quote
I usually think of Armok as the pure essence of FUCK YOU!

Alem

  • Bay Watcher
    • View Profile
Re: Help with modding in Majicks
« Reply #6 on: March 12, 2012, 08:55:51 pm »

From what I recall reading, you can make custom interactions discoverable by tablets. However if the secret does not have an animate dead type interaction (or maybe the animate dead interaction exactly), they will not build towers. I don't do adventure mode so I don't know much else about it unfortunately, but the Spellbook thread has quite a few references to such things. It is an awesome reference thus far. I do beleive you can actually set the blistering to be whole body by leaving off the target token, but unless the blistering is extremely severe it might not have any notable impact (on my curse spell with bleeding from the eyes, I had to put the severity up to 6000 to get any real impact other than blood puddles beneath em). As far as learning the spell it would again go on Secret based interactions, which I'm not too familiar with.
Logged

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: Help with modding in Majicks
« Reply #7 on: March 12, 2012, 09:42:37 pm »

From what I recall reading, you can make custom interactions discoverable by tablets. However if the secret does not have an animate dead type interaction (or maybe the animate dead interaction exactly), they will not build towers. I don't do adventure mode so I don't know much else about it unfortunately, but the Spellbook thread has quite a few references to such things. It is an awesome reference thus far. I do beleive you can actually set the blistering to be whole body by leaving off the target token, but unless the blistering is extremely severe it might not have any notable impact (on my curse spell with bleeding from the eyes, I had to put the severity up to 6000 to get any real impact other than blood puddles beneath em). As far as learning the spell it would again go on Secret based interactions, which I'm not too familiar with.

Just adding to this post, Slabs that don't have animate dead can be made even without animate dead, but as Alem already said, if it doesn't have an animate dead reaction, no towers will be built for it, although a lucky worldgen thief might be able to acquire it and keep it in camps.

Also, all slabs must have IMMORTALITY as a set goal to function, as of now.
Logged
Thank you for all the fish. It was a good run.