Page 1 of 1
Two weapon fighting
Posted: Wed Apr 27, 2011 7:54 pm
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?
Re: Two weapon fighting
Posted: Wed Apr 27, 2011 8:05 pm
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.
Re: Two weapon fighting
Posted: Wed Apr 27, 2011 8:20 pm
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.
Re: Two weapon fighting
Posted: Wed Apr 27, 2011 8:30 pm
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.
Re: Two weapon fighting
Posted: Wed Apr 27, 2011 9:55 pm
by Sophia
If you mean the list of ACTION_* things, those are hardcoded and you can't create new ones.
Re: Two weapon fighting
Posted: Thu Apr 28, 2011 2:54 am
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.
Re: Two weapon fighting
Posted: Thu Apr 28, 2011 2:59 am
by Sophia
I was replying to this:
Leslie wrote:How can I build such an actuator and create/route "new" actions?
Re: Two weapon fighting
Posted: Thu Apr 28, 2011 3:02 am
by Lord_BoNes
My bad. I've edited the above post.

Re: Two weapon fighting
Posted: Thu Apr 28, 2011 8:44 am
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.
Re: Two weapon fighting
Posted: Thu May 26, 2011 3:54 pm
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
Re: Two weapon fighting
Posted: Thu May 26, 2011 4:44 pm
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.
Re: Two weapon fighting
Posted: Sat Jan 26, 2013 2:48 pm
by madison11
What are the best two weapons used in fighting? My choices are knife and sword. Are those weapons okay?
Re: Two weapon fighting
Posted: Sun Jan 27, 2013 10:20 am
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.
