Two weapon fighting

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
Leslie
Adept
Posts: 252
Joined: Wed Apr 27, 2011 2:25 pm
Location: Germany

Two weapon fighting

Post by Leslie »

Has anyone ever implemented an attack method with two weapons?

Take a dagger for example. I'd like to create an attack method like "attack with two daggers" which checks if two daggers are equipped and then deals more damage than a "normal" dagger attack.

Is this possible?
What are the bells that never ring? Enchanting smell, beautiful thing.
What are the lions that never roar? The wind blows their children far over the shore.
What are the gloves not worn by the hand? But worn by the foxes throughout the land.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Two weapon fighting

Post by beowuuf »

I should be, you can route new actions through a wall_action actuator. So you could have it check for a second dagger and do a higher value attack then if this check fails, have it do a lower value attack.
Leslie
Adept
Posts: 252
Joined: Wed Apr 27, 2011 2:25 pm
Location: Germany

Re: Two weapon fighting

Post by Leslie »

How can I build such an actuator and create/route "new" actions? As far as I've seen in RTC editor, I found no way for creating new actions. Or for checking if particular items are equipped.
What are the bells that never ring? Enchanting smell, beautiful thing.
What are the lions that never roar? The wind blows their children far over the shore.
What are the gloves not worn by the hand? But worn by the foxes throughout the land.
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Two weapon fighting

Post by beowuuf »

Thisis going by memory:

There are wall items called relays, counters and 'action' items. Relays can be used to check conditionals. wall_action items can be called by name (you usually close it and give it a new name). These wall_actions can trigger actions. So you can clone say a stab action, clone a dagger, give this cloned dagger the cloned stab action that all it does is targets a relay. Have the relay check the off hand, and if true then target the wall_action which can make an attack.

It's something like that.
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Two weapon fighting

Post by Sophia »

If you mean the list of ACTION_* things, those are hardcoded and you can't create new ones.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Two weapon fighting

Post by Lord_BoNes »

Instead of having the attack method use a "deal damage" action, you make it fire an OBJECT_ACTIVATE action using a cloned WALLITEM_RELAY as the object_1's target type. When the attack method is fired, it fires ALL instances of that cloned relay that exist in the dungeon (so if you only have 1 instance of it, it only fires once... with 2 or more instances, it fires for each of them individually, one after the other). You just make this relay check if your effect should fire (is the weapon in the left hand) and then you can target WALLITEM_ACTIONs that actually deal the damage.
Last edited by Lord_BoNes on Thu Apr 28, 2011 3:01 am, edited 1 time in total.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Two weapon fighting

Post by Sophia »

I was replying to this:
Leslie wrote:How can I build such an actuator and create/route "new" actions?
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Two weapon fighting

Post by Lord_BoNes »

My bad. I've edited the above post. :(
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
Leslie
Adept
Posts: 252
Joined: Wed Apr 27, 2011 2:25 pm
Location: Germany

Re: Two weapon fighting

Post by Leslie »

With trying around a little, I managed to produce the desired effect with an combine action. The attack method fires a combine action, which checks for two daggers (and destroys them, I don't know if I can prevent this). Then, in the properties of the dagger, I defined that on a combine action a new dagger is being created (a workaround for the destruction mentioned above), and also the damage is dealt.

It works if you have two daggers equipped and does nothing if you only have one dagger. What I didn't check by now if you get experience even if the action fails.
What are the bells that never ring? Enchanting smell, beautiful thing.
What are the lions that never roar? The wind blows their children far over the shore.
What are the gloves not worn by the hand? But worn by the foxes throughout the land.
User avatar
Zed5Duke
Um Master
Posts: 453
Joined: Sat Jun 24, 2006 5:40 pm
Location: Darkmoond

Re: Two weapon fighting

Post by Zed5Duke »

How about use combine skill here? Combine will work only when have these two weapons in both hands. In weapon attack methods option: "dual swords" After combine create the same weapons and make additional action of damage. So he will hit stronger when carry two swords, option will dont work if he hold only one.


EDIT sorry dont read previous post, seem like you already found the same concept
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Two weapon fighting

Post by Lord_BoNes »

I'd assume that it'll give you XP doing it with combine. When the combine action occurs, it SHOULD tell the attack method that fired it "I succeeded here, so give 'em XP"... which isn't entirely true. If you just stand there (with no monsters around) and continuously attack the air, you should slowly level up.

But, I could be wrong here... testing is needed.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
madison11
Neophyte
Posts: 1
Joined: Sat Jan 26, 2013 2:30 pm

Re: Two weapon fighting

Post by madison11 »

What are the best two weapons used in fighting? My choices are knife and sword. Are those weapons okay?
I wanna bring this all the time “blowguns
User avatar
Seriously Unserious
Master Superior
Posts: 1418
Joined: Sun May 11, 2008 11:53 am
Location: Wandering around aimlessly in Lynchgate Woods
Contact:

Re: Two weapon fighting

Post by Seriously Unserious »

that depends on the type of sword. Something like the Inquisitor would, of course be better on it's own without a second weapon, then fighting 2 swords style with say a falchion and a dagger. The Inquisitor's damage would be higher even then the combined damage of the falchion and dagger combo.

However I think the original poster was discussing ways to make the RTC engine simulate fighting 2-swords style, something the engine wasn't really designed to handle, hence this discussion of how to design a workaround, which seems to come down to either using cloned objects that activate a cloned relay and do damage depending on whether or not the character initiating the action has another weapon of a specific type equipped in his/her left hand. The other method discussed here was to use the combine feature as a workaround.

Anyways, welcome to the forum. 8)
Post Reply