Author Topic: Spear Bracing Kit (Updated)  (Read 20129 times)

0 Members and 3 Guests are viewing this topic.

MartinF

  • Squire
  • *
  • Down Under
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit
« Reply #30 on: April 14, 2009, 01:07:40 PM »
the header_operations stuff is not necessary as I'm fairly sure you guys didn't change anything there since that would pretty much be impossible and wouldn't accomplish anything.

The stuff you want is in module_constants.py and it's the extra slots which you're using.

Haven't tried the code but it looks very cool. Thanks for sharing!


The Mercenary

  • Grandmaster Knight
  • *
  • Rest in peace, Cymro. We'll all miss you.
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit
« Reply #32 on: April 14, 2009, 08:27:29 PM »

slot_agent_spearwall = 142
slot_agent_x = 143
slot_agent_y = 144
slot_agent_z = 145
slot_agent_speed = 146

Stick that in somewhere in module_constants.

Berserker Pride

  • Grandmaster Knight
  • *
  • Fearless Scripter of the Berserk Mod
    • View Profile
  • Faction: Vaegir
  • MP nick: CoR_Berserker
  • WB
Re: Spear Bracing Kit (Updated)
« Reply #33 on: April 15, 2009, 01:46:54 AM »
Awesome TheMercenary thanks for the update.  I just have a couple questions.  I had to tab out global variables $rout and $airout because they weren't defined anywhere. I also assigned $setting_use_spearwall to 1 in the first trigger so that it was defined.  The last problem I have is that anim_spearwall_hold is not defined anywhere.  How do I add that to brf's?

jik

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #34 on: April 15, 2009, 02:02:53 PM »
Awesome TheMercenary thanks for the update.  I just have a couple questions.  I had to tab out global variables $rout and $airout because they weren't defined anywhere. I also assigned $setting_use_spearwall to 1 in the first trigger so that it was defined.  The last problem I have is that anim_spearwall_hold is not defined anywhere.  How do I add that to brf's?

Ya I PMed him on the animation thing, but I guess he didn't get it in time. 

the $rout and $airout look to be from chel's moral mod, though I'd have to go over the 2 kits to see for sure.

Mordachai

  • Squire
  • *
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #35 on: April 15, 2009, 03:33:09 PM »
the $rout and $airout look to be from chel's moral mod, though I'd have to go over the 2 kits to see for sure.

I can confirm that.  If you're not using Che's morale kit, then you can just comment out those parts that relate to morale.

The Mercenary

  • Grandmaster Knight
  • *
  • Rest in peace, Cymro. We'll all miss you.
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #36 on: April 15, 2009, 10:08:23 PM »
Awesome TheMercenary thanks for the update.  I just have a couple questions.  I had to tab out global variables $rout and $airout because they weren't defined anywhere. I also assigned $setting_use_spearwall to 1 in the first trigger so that it was defined.  The last problem I have is that anim_spearwall_hold is not defined anywhere.  How do I add that to brf's?

Ya I PMed him on the animation thing, but I guess he didn't get it in time. 

the $rout and $airout look to be from chel's moral mod, though I'd have to go over the 2 kits to see for sure.

You PMed "him"?

Check the OP for animations. It's been there since I made the last post.

jik

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #37 on: April 16, 2009, 01:46:40 AM »
my bad... didn't look there again.  Thanks for the info!

Mordachai

  • Squire
  • *
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #38 on: April 16, 2009, 07:31:23 PM »
You PMed "him"?
Rare enough to be a common assumption.  Glad its not just testosterone and male-nerderone floating around out there... ;)

Chel

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #39 on: April 16, 2009, 07:41:49 PM »
good stuff Mercenary!

Berserker Pride

  • Grandmaster Knight
  • *
  • Fearless Scripter of the Berserk Mod
    • View Profile
  • Faction: Vaegir
  • MP nick: CoR_Berserker
  • WB
Re: Spear Bracing Kit (Updated)
« Reply #40 on: April 18, 2009, 06:20:33 PM »
Awesome its all working perfectly now.  Eat that you swadians. I really like the bonus horse kit its a very useful feature. And easy to implement too.  Just need to add slot_troop_horse to module constants.  Thanks for all your work TheMercenary.

FrisianDude

  • Coitus non Awesome
  • Grandmaster Knight
  • *
  • ... and let's keep this as civil as possible
    • View Profile
  • Faction: Neutral
  • MP nick: OLL_SirAndelot/Warden Leo
  • M&BWB
Re: Spear Bracing Kit (Updated)
« Reply #41 on: April 19, 2009, 08:49:29 PM »
Esay to implement? Then I must be dafter than I thought. :lol:

Could you (or anyone) explain where to put it (I tried it beneath the #AI Tiggers in module_templates) and how to deal with syntax error with that =? :?

I'd really appreciate any help, because this sounds very, VERY cool. :)
Nords ruled by King Ragnar, Khergits ruled by Sanjar Khan, Rhodoks ruled by King Graveth, Swadians ruled by King Harlaus, Vaegirs ruled by King Yaroglek. All those peoples live, fight, and die in the continent of Calradia. The Nords and Rhodoks field solely infantry and archers, the Swadians and Vaegirs have infantry, archers and cavalry and the Khergit field almost exclusively cavalry. No such things as "infarty" or "calvary" exist. A nice link to my mod ;)

The Master

  • Veteran
  • *
  • Your Master has arrived...
    • View Profile
  • Faction: Nord
Re: Spear Bracing Kit (Updated)
« Reply #42 on: April 19, 2009, 10:44:05 PM »
Esay to implement? Then I must be dafter than I thought. :lol:

Could you (or anyone) explain where to put it (I tried it beneath the #AI Tiggers in module_templates) and how to deal with syntax error with that =? :?

I'd really appreciate any help, because this sounds very, VERY cool. :)
Yeah i'm getting that problem too please help us both  :lol:

The Mercenary

  • Grandmaster Knight
  • *
  • Rest in peace, Cymro. We'll all miss you.
    • View Profile
  • Faction: Neutral
Re: Spear Bracing Kit (Updated)
« Reply #43 on: April 19, 2009, 11:38:11 PM »
Okay, try this. Go to the top of mission_templates, where all the triggers are defined, and put it in there. Next, in your areas to use it, put these lines:

Code: [Select]
      spearwall_trigger_1,
      spearwall_trigger_2,
      spearwall_trigger_3,
      spearwall_trigger_4,
      spearwall_trigger_5,
      spearwall_trigger_6,
      spearwall_trigger_7,
      spearwall_trigger_8,
      spearwall_trigger_9,

at the very end, right before the final


    ],
  ),


Berserker Pride

  • Grandmaster Knight
  • *
  • Fearless Scripter of the Berserk Mod
    • View Profile
  • Faction: Vaegir
  • MP nick: CoR_Berserker
  • WB
Re: Spear Bracing Kit (Updated)
« Reply #44 on: April 19, 2009, 11:48:45 PM »
when I said it was easy I meant the horse kit. It only has the two triggers the code goes at the top before mission_templates = [ and then just add call_horse_trigger_1, and call_horse_trigger_2, to any template you have a horse in.  And remember to add slot_troop_horse at the end of all the slot_troop constants in module_constants.py. like so:
(click to show/hide)
This code goes at the top of module_mission_templates. I put my new triggers under af_castle_lord = af_override_horse | af_override_weapons| af_require_civilian and it seems to work great.


Then you add call_horse_trigger_1,call_horse_trigger_2, in each mission_template that you want it in.
I usually put them here under the 2 triggers at the end of each mission_template.
(click to show/hide)
The spearwall triggers would go here as well.  And the rest of the code for spearwall would be at the top of module_mission_templates.
« Last Edit: April 20, 2009, 12:01:34 AM by Berserker Pride »