Dual-Wield Project and other Acrobatic/Assasin combat styles

Users who are viewing this thread

dont you want it like:

if mouse direction is "up"
play attack anim "anim_overthrust_dual"
if mouse direction is "middle"
play attack anim "anim_dual_strike"
if mouse direction is "down"
play attack anim "anim_dual_pierce"

than it would be something like:

Code:
get mouse position, pos1
store x axis, :x, pos1
try begin
  ge, :x 20
  agent play animation, :agent, anim_overthrust_dual
else_try
  li, :x -20
  agent play animation, :agent, anim_dual_pierce
else try
  agent play animation, :agent, anim_dual_strike
try end
 
Ikaguia said:
dont you want it like:

if mouse direction is "up"
play attack anim "anim_overthrust_dual"
if mouse direction is "middle"
play attack anim "anim_dual_strike"
if mouse direction is "down"
play attack anim "anim_dual_pierce"

than it would be something like:

Code:
get mouse position, pos1
store x axis, :x, pos1
try begin
  ge, :x 20
  agent play animation, :agent, anim_overthrust_dual
else_try
  li, :x -20
  agent play animation, :agent, anim_dual_pierce
else try
  agent play animation, :agent, anim_dual_strike
try end
Thanks.What about the part:
troop wields item with flag "itp_offhand"
 
You can't define custom property flags, unless you modify the compiler to have it set a slot at game start, which is the only way of getting the game to recognize it as such other than specifying a range.
 
I think I am finishing it.Here's the code i put at the strating of "module_mission_templates".
Check it for any grammar mistakes and the ":mad:" var from "somebody".
common_dual_wield = (
  0, 0, 0, [],
  [
    (troop_has_item_equipped,trp_player,itm_dagger_dual),
      (try_begin),
    (get_mouse_position, pos1),
    (store_x_axis, :mad:, pos1),
      (try_begin),
      (ge, :mad: 20),
      (agent play animation, :agent, anim_overthrust_dual),
      (else_try),
      (li, :mad: -20),
    (agent_play_animation, :agent, anim_dual_pierce),
      (else try),
      (agent_play_animation, :agent, anim_dual_strike),
      (try_end),
 
This is what I noticed off-hand.

Code:
common_dual_wield = (
  0, 0, 0, [],
  [
    (troop_has_item_equipped,trp_player,itm_dagger_dual),
      (try_begin),
    (get_mouse_position, pos1),
    (store_x_axis, ":x", pos1),
      (try_begin),
      (ge, ":x", 20),
      (agent play animation, ":agent", anim_overthrust_dual),
      (else_try),
      (lt, ":x", -20),
     (agent_play_animation, ":agent", anim_dual_pierce),
      (else try),
      (agent_play_animation, ":agent", anim_dual_strike),
      (try_end),

I'm not quite sure what you're asking about :mad: though. 
 
he was asking if there was anything wrong with the :mad:, and there was, it needed to be ":mad:" not :mad:.

and just remembering, this code only plays the animation, it don't do damage or throw back and you have to create the animations.

and

common_dual_wield = (
  0, 0, 0, [],
  [
    (troop_has_item_equipped,trp_player,itm_dagger_dual),
      (try_begin),
    (get_mouse_position, pos1),
    (store_x_axis, ":mad:", pos1),
      (try_begin),
      (ge, ":mad:", 20),
      (agent play animation, ":agent", anim_overthrust_dual),
      (else_try),
      (lt, ":mad:", -20),
    (agent_play_animation, ":agent", anim_dual_pierce),
      (else try),
      (agent_play_animation, ":agent", anim_dual_strike),
      (try_end),
with that you'll be able to use the atack even if the dagger is in the shelter
 
I put common_dual_wield in the bottom of module mission templates,but I get this:

Traceback (most recent call last):
  File "process_init.py", line 2, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables.py", line 12, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Traceback (most recent call last):
  File "process_map_icons.py", line 6, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 66, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting troops data
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_tableau_materials.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting quest data...
Exporting info_page data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
process_operations.py", line 21, in <module>
    from module_mission_templates import *
  File "C:\Program Files\Mount&Blade Warband\Modules\Native Expansion IV System\
module_mission_templates.py", line 14628
    common_dual_wield = (
                      ^
SyntaxError: invalid syntax
Exporting postfx_params...

______________________________

Script processing has ended.
Press any key to exit. . .
 
you need to put it just after the other common_X = XXXX
not at the bottom, and you need to add at each template wich you want dual_wield common_dual_wirld
 
Check this common_dual_wield.:
common_dual_wield = (
  0, 0, 0, [],
  [
    (troop_has_item_equipped,trp_player,itm_dagger_legolas_dual),
    (agent_get_wielded_item,ek_item_1,itm_dagger_legolas_dual,ek_item_1),
      (try_begin),
    (get_mouse_position, pos1),
    (store_x_axis, ":mad:", pos1),
      (try_begin),
      (ge, ":mad:" 20),
      (agent play animation, :agent, anim_overthrust_dual),
      (else_try),
      (lt, ":mad:" -20),
    (agent_play_animation, :agent, anim_dual_pierce),
      (else try),
      (agent_play_animation, :agent, anim_dual_strike),
      (try_end),
    ])
and this error
common_dual_wield = (
  0, 0, 0, [],
  [
    (troop_has_item_equipped,trp_player,itm_dagger_legolas_dual),
    (agent_get_wielded_item,ek_item_1,itm_dagger_legolas_dual,ek_item_1),
      (try_begin),
    (get_mouse_position, pos1),
    (store_x_axis, ":mad:", pos1),
      (try_begin),
      (ge, ":mad:" 20),
      (agent play animation, :agent, anim_overthrust_dual),
      (else_try),
      (lt, ":mad:" -20),
    (agent_play_animation, :agent, anim_dual_pierce),
      (else try),
      (agent_play_animation, :agent, anim_dual_strike),
      (try_end),
    ])
What's left?
 
  (agent_get_wielded_item,ek_item_1,itm_dagger_legolas_dual,ek_item_1),
?????

should be:

  (agent_get_wielded_item,":item",ek_item_1),
  (eq,":item", itm_dagger_legolas_dual),
 
Ikaguia said:
  (agent_get_wielded_item,ek_item_1,itm_dagger_legolas_dual,ek_item_1),
?????

should be:

  (agent_get_wielded_item,":item",ek_item_1),
  (eq,":item", itm_dagger_legolas_dual),
It should actually be (get_player_agent_no, ":agent"), (agent_get_wielded_item, ":item", ":agent", 0).
 
Neither do I.
However check one of the scripts Ikaguia already made.I believe they need some synthax correction.Send'em to me when u're done.
 
Back
Top Bottom