Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Secondary weapons: can the AI be changed?  (Read 1339 times)

leafbarrett

  • Bay Watcher
  • Resident pokemon fanboy
    • View Profile
    • Mewtwo mod
Secondary weapons: can the AI be changed?
« on: June 01, 2012, 01:36:14 pm »

From the wiki:
"Secondary weapons: Although it sounds like a cool idea, equipping a marksdwarf with a backup shortsword just in case doesn't often work, as dwarves are just as quick to run up their foes and start bashing them with a crossbow as they are to draw their swords and do it properly."
Now, this seems like a fairly big problem, but I doubt this is something that can be changed as simply as just adding a token in the raws. I suppose it's possible to remove the melee component of ranged weapons completely, but that seems like just as bad of an option, as unless the dwarf has a backup weapon, they're left to fight barehanded. Any ideas?
Logged
Quote from: leafbarrett
Quote
They can do whatever the heck they want. That's why they are nobles, cause they CAN.
King Henry the IV or something had a lot of wives, most of whom he executed. Because he could.
A ton of them mass-murdered Jews and Muslims. CAUSE THEY COULD.
A roman emperor made his horse a noble, cause he could.
And I modded them all out of existence, because I could.
sig text

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: Secondary weapons: can the AI be changed?
« Reply #1 on: June 01, 2012, 02:28:19 pm »

removing the melee part of a bow sounds interesting but not sure how to do it.
secondary attacks are just that, they're not optional but only done if the primary isn't able to be done.  however ambidexterity is supposed to exist... so don't know what the wiki quote is getting at.
Logged

leafbarrett

  • Bay Watcher
  • Resident pokemon fanboy
    • View Profile
    • Mewtwo mod
Re: Secondary weapons: can the AI be changed?
« Reply #2 on: June 01, 2012, 02:37:25 pm »

What it's saying is that the dwarves are just as likely to try and smack enemies with the crossbow as they are to use their sword. Which, from what I know about the fighting system, is true. It's kinda like a dwarf choosing to grapple a hydra's third left toe instead of its throat: the dwarf is as likely to choose the ineffective option as it is to choose the effective one.
Logged
Quote from: leafbarrett
Quote
They can do whatever the heck they want. That's why they are nobles, cause they CAN.
King Henry the IV or something had a lot of wives, most of whom he executed. Because he could.
A ton of them mass-murdered Jews and Muslims. CAUSE THEY COULD.
A roman emperor made his horse a noble, cause he could.
And I modded them all out of existence, because I could.
sig text

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Secondary weapons: can the AI be changed?
« Reply #3 on: June 01, 2012, 03:50:05 pm »

Problem is even if you remove the attack tags from the bow/crossbow the creature will simply "bash" its foe with it, and training the Misc. Object Use skill. Its that the AI has a set slot for "weapon" and picks the best one, and I believe ranged weapons trump melee so that archers acually use their ranged weapons.
Logged

bombzero

  • Bay Watcher
    • View Profile
Re: Secondary weapons: can the AI be changed?
« Reply #4 on: June 01, 2012, 03:51:53 pm »

Maybe they need a set 'slot' for both melee and ranged? would make sense, all units could have a melee 'slot' and all ranged have both.
Logged

leafbarrett

  • Bay Watcher
  • Resident pokemon fanboy
    • View Profile
    • Mewtwo mod
Re: Secondary weapons: can the AI be changed?
« Reply #5 on: June 01, 2012, 04:25:28 pm »

So basically, there's no way to make your dwarves not be retards?
Logged
Quote from: leafbarrett
Quote
They can do whatever the heck they want. That's why they are nobles, cause they CAN.
King Henry the IV or something had a lot of wives, most of whom he executed. Because he could.
A ton of them mass-murdered Jews and Muslims. CAUSE THEY COULD.
A roman emperor made his horse a noble, cause he could.
And I modded them all out of existence, because I could.
sig text

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Secondary weapons: can the AI be changed?
« Reply #6 on: June 01, 2012, 05:35:32 pm »

@BZ
Would make sense, Toady will probally do that in the Army Arc. Maybe

@LB
Only way to make them less retarded is to make custom weapons like such:
Spoiler (click to show/hide)
Logged

Urist Da Vinci

  • Bay Watcher
  • [NATURAL_SKILL: ENGINEER:4]
    • View Profile
Re: Secondary weapons: can the AI be changed?
« Reply #7 on: June 01, 2012, 07:49:14 pm »

You could just change the crossbow melee to train sword and give crossbows a "bayonet" attack.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Secondary weapons: can the AI be changed?
« Reply #8 on: June 01, 2012, 08:34:22 pm »

I have my Bayonetted Crossbows use the PIKE skill, since a crossbow is so awkward, I'd figure all you could do was stab
Logged

Jake

  • Bay Watcher
  • Remember Boatmurdered!
    • View Profile
    • My Web Fiction
Re: Secondary weapons: can the AI be changed?
« Reply #9 on: June 01, 2012, 11:13:03 pm »

I have my Bayonetted Crossbows use the PIKE skill, since a crossbow is so awkward, I'd figure all you could do was stab.

Likewise, except mine use the speardwarf skill so I can have my marksdwarf squads perform bayonet drills with training spears. They also have a blunt attack as well, though the AI doesn't use it very often.
Logged
Never used Dwarf Therapist, mods or tilesets in all the years I've been playing.
I think Toady's confusing interface better simulates the experience of a bunch of disorganised drunken dwarves running a fort.

Black Powder Firearms - Superior firepower, realistic manufacturing and rocket launchers!