Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 452 453 [454] 455 456 ... 544

Author Topic: [MODDING] 0.34. QUESTIONS THREAD  (Read 1002271 times)

Mallos

  • Bay Watcher
  • sick and tired of being sick and tired
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6795 on: December 21, 2013, 09:02:52 pm »

What is "it"? If you can't target, then you're kind of SOL unless you give us the part that actually matters for that: the CAN_DO_INTERACTION:CHAOS_TOUCH in the creature.

Well here are the creature raws for my Chaos Knight,who is the one who is supposed to be able to do chaos touch.
Code: [Select]
[CREATURE:KNIGHT_CHAOS]
[Description:A large suit of armor infused with the owner's soul. It wields two iron obsidian zweihanders. The Chaos Gods have granted it immense power. Run while you still can!]
[NAME:chaos knight:chaos knights:chaos knight]
[CASTE_NAME:chaos knight:chaos knights:chaos knight]
[CREATURE_TILE:'C'][COLOR:3:0:1]
[INTELLIGENT]
[CANOPENDOORS]
[EVIL]
[CAN_DO_INTERACTION:CHAOS_TOUCH]
[PREFSTRING:suit of ebony armor]
[PREFSTRING:large sword]
[PREFSTRING:evil deeds]
[FANCIFUL]
[NOPAIN][NOEMOTION][NOTHOUGHT][NOBREATHE]
[NO_FEVERS]
[BUILDINGDESTROYER:2]
[NO_EAT][NO_DRINK][NO_SLEEP]
[SPHERE:METALS]
[SPHERE:DEATH]
[SPHERE:CHAOS]
[SPHERE:WAR]
[NOFEAR]
[BODY:HUMANOID:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES]
[TISSUE:OBSIDIAN]
[TISSUE_NAME:obsidian:obsidian]
[TISSUE_MATERIAL:INORGANIC:OBSIDIAN]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:OBSIDIAN]
[BODY_SIZE:0:0:20000000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK:SLASH:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:slash:slashes]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PENETRATION_PERC:100]
[ITEMCORPSE:STATUE:NO_SUBTYPE:INORGANIC:OBSIDIAN]
[ITEMCORPSE_QUALITY:5]
[DIURNAL]
[LAIR:SHRINE:100]
[SWIMS_LEARNED][SWIM_SPEED:2500]
Logged
Gone. Departed. Headed off toward greener pastures.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6796 on: December 21, 2013, 09:26:18 pm »

It doesn't even have the CAN_DO_INTERACTION...

Mallos

  • Bay Watcher
  • sick and tired of being sick and tired
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6797 on: December 21, 2013, 09:29:14 pm »

It doesn't even have the CAN_DO_INTERACTION...
Yes,it does. It's near the top. You must have overlooked it.
Logged
Gone. Departed. Headed off toward greener pastures.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6798 on: December 21, 2013, 09:31:03 pm »

It needs all the same stuff as the syndrome does:

Code: [Select]
[CAN_DO_INTERACTION:CHAOS_TOUCH]
[CDI:USAGE_HINT:ATTACK]
[CDI:VERB:touch:touches:touch each other]
[CDI:INTERACTION:CHAOS_TOUCH]
[CDI:TARGET:A:SELF_ALLOWED:TOUCHABLE]
[CDI:TARGET_RANGE:A:1]
[CDI:MAX_TARGET_NUMBER:A:1]
[CDI:WAIT_PERIOD:10]

I overlooked it because it was missing most of itself.

Mallos

  • Bay Watcher
  • sick and tired of being sick and tired
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6799 on: December 21, 2013, 09:38:48 pm »

It needs all the same stuff as the syndrome does:

Code: [Select]
[CAN_DO_INTERACTION:CHAOS_TOUCH]
[CDI:USAGE_HINT:ATTACK]
[CDI:VERB:touch:touches:touch each other]
[CDI:INTERACTION:CHAOS_TOUCH]
[CDI:TARGET:A:SELF_ALLOWED:TOUCHABLE]
[CDI:TARGET_RANGE:A:1]
[CDI:MAX_TARGET_NUMBER:A:1]
[CDI:WAIT_PERIOD:10]

I overlooked it because it was missing most of itself.

Oh. My. Armok.
It actually fucking works.
Thank you 1000 times,Putnam. :D
Logged
Gone. Departed. Headed off toward greener pastures.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6800 on: December 21, 2013, 09:46:23 pm »

Oh, yeah. Your code itself was mostly fine, it's just that you made the (common) mistake of mixing up CAN_DO_INTERACTION and INTERACTION stuff.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6801 on: December 22, 2013, 11:56:29 am »

Hm.

How would I make a transformation trigger based on certain things in the environment? Failing that, could I LINK a transformation to age?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6802 on: December 22, 2013, 01:56:30 pm »

1. Depends on what you mean by environment
2. no

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6803 on: December 22, 2013, 02:13:37 pm »

2. Ah.
1. Environment being whether or not they're in water, magma, caves, etc.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6804 on: December 22, 2013, 03:04:00 pm »

Water and magma, yes, anything else, no.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6805 on: December 22, 2013, 03:08:09 pm »

I suddenly want to make a creature that fully heals when taking a nice magma bath. ^^
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 :::

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6806 on: December 22, 2013, 03:13:57 pm »

I suddenly want to make a creature that fully heals when taking a nice magma bath. ^^
Well, my theory was somewhat based off that. Basically, a creature that transforms into a magma slinging blob that healed with magma on contact with magma, in order to survive it.

That needs to be a thing, though, interactions based off biomes and such.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6807 on: December 22, 2013, 03:28:37 pm »

IndigoFenix was working on biome-based interactions. Sort a. Btw, the blob can survive magma if you make its tissues magma-proof. No need for fancy interactions.
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 :::

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6808 on: December 22, 2013, 03:33:42 pm »

I know, I was planning on using an adaption gimmick.

Noobazzah

  • Bay Watcher
  • Make lye, not war.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #6809 on: December 23, 2013, 03:56:11 am »

I know that it's possible to 'transform' stuff into something else by using interactions, but would an interaction that changes the material of a critter's bodyparts work? I'm trying to make a combat-triggered fire shield sort of thing (since I added some random 'magical' castes battles have become quite chaotic) by just temporarily turning the critter dragonfire-proof. If not, I guess I could just make an identical copy that has the normal materials replaced with something much more heat-resistant..
Logged
Pages: 1 ... 452 453 [454] 455 456 ... 544