Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How to adjust an attack to this part of body?  (Read 1213 times)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
How to adjust an attack to this part of body?
« on: February 18, 2008, 06:35:00 pm »

Hello,  I have:
code:

body_deon_races

[OBJECT:BODY]

[BODY:4FACE_TENTACLES]
[BP:TENTACLE1:first tentacle][CONTYPE:HEAD]

[LIMB]
[BP:TENTACLE2:second tentacle][CONTYPE:HEAD][LIMB]
[BP:TENTACLE3:third tentacle][CONTYPE:HEAD][LIMB]
[BP:TENTACLE4:fourth tentacle][CONTYPE:HEAD]
[LIMB]


And I try to use the attack:
code:

[ATTACK:MAIN:BYTOKEN:4FACE_TENTACLES: pierce: pierces:1:4: PIERCE][ATTACKFLAG_WITH][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]

But my creature ignores this attack and just punches... What's wrong?

Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: How to adjust an attack to this part of body?
« Reply #1 on: February 18, 2008, 06:43:00 pm »

For now I use the "bytype" and "limb"
Looks like:

Nice, but how to use bytoken in this situation?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: How to adjust an attack to this part of body?
« Reply #2 on: February 18, 2008, 06:48:00 pm »

Try using TENTACLE1 TENTACLE2 ect.  I think it uses the individual parts instead of the group name.

You can probably just use.

code:

[ATTACK:MAIN:BYTOKEN:TENTACLE1:pierce:pierces:1:4:PIERCE][ATTACKFLAG_WITH][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]
[ATTACK:MAIN:BYTOKEN:TENTACLE2:pierce:pierces:1:4:PIERCE][ATTACKFLAG_WITH][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]
[ATTACK:MAIN:BYTOKEN:TENTACLE3:pierce:pierces:1:4:PIERCE][ATTACKFLAG_WITH][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]
[ATTACK:MAIN:BYTOKEN:TENTACLE4:pierce:pierces:1:4:PIERCE][ATTACKFLAG_WITH][ATTACKFLAG_CANLATCH][SPECIALATTACK_INJECT_EXTRACT:50:100]  


EDIT:nevermind the edit, misread second post.

[ February 18, 2008: Message edited by: Greiger ]

Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: How to adjust an attack to this part of body?
« Reply #3 on: February 18, 2008, 06:51:00 pm »

BYTYPE:LIMB writes as I attack with head... I want to attack with tentacles.
Anyway, I have a solution - if i can't get it working, I'll just change it to "you sprout the mayor in the head with your head" -)
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: How to adjust an attack to this part of body?
« Reply #4 on: February 18, 2008, 06:53:00 pm »

By the way, is there a way to increase crit. hit for limbs, not for weapon?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Greiger

  • Bay Watcher
  • Reptilian Illuminati member. Keep it secret.
    • View Profile
Re: How to adjust an attack to this part of body?
« Reply #5 on: February 18, 2008, 06:57:00 pm »

Currently you can only change the crit chance for weapons. No way with natural attacks yet.
Logged
Disclaimer: Not responsible for dwarven deaths from the use or misuse of this post.
Quote
I don't need friends!! I've got knives!!!
Pages: [1]