Jump to content


Photo

New Weapon for CAH


Best Answer Miraak5, 23 April 2020 - 12:03 PM

WEAPONSET_CREATE_A_HERO_*
are probably hardcoded in the game engine (wich mean you can't just add a new one) so you are forced to use an existant one

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 22 April 2020 - 02:46 PM

Hi all!
I've been quitely modding this game for like 7 years but this is the first time I put my hands in CAH things.
I followed the few tutorials found in 3rdage but none of them tell about the creation of a new cah weapon.

A member of my team is now trying to add a Create A Hero class for Giant and we can't figure out how to add a new WeaponCondition in the cahweaponupgrades.

We've tried defining a condition WEAPONSET_CREATE_A_HERO_GIANT but the game crashes with "not a member of the index list".

Is there a way to define new conditions or at least have a list of the existing ones?

Thank you all!

EDIT: ok i found out that using the same format of the other WeaponCondition it works.
Like: WEAPONSET_CREATE_A_HERO_*
With * as a number not already used.
But i don't understand why and how that works.
Does anyone know it?

Edited by Symonius, 22 April 2020 - 04:52 PM.

"All we have to decide is what to mod with the time that is given us"


#2 Miraak5

Miraak5

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  BIG coding, Map scripting and AI coding

Posted 23 April 2020 - 12:03 PM   Best Answer

WEAPONSET_CREATE_A_HERO_*
are probably hardcoded in the game engine (wich mean you can't just add a new one) so you are forced to use an existant one


He was the first...


#3 Symonius

Symonius
  • Members
  • 51 posts
  • Location:The ancient shield
  • Projects:TROW Mod
  •  Just a winged modder

Posted 23 April 2020 - 01:30 PM

Yeah, as I thought.
Thanks for the confirm 👍🏻😣

"All we have to decide is what to mod with the time that is given us"





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users