Jump to content


Photo

How to add Karsh's Chill Soul to CaH?


  • Please log in to reply
13 replies to this topic

#1 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 18 April 2019 - 05:11 AM

Hi

 

I'm new to modding and i succesfully followed the tutorial on how to add a normal power to a CaH.

However, i can't seem to find a way to add Karsh's Chill Soul. Under Karsh's Chill Soul there's only something that says "fireweapon" or something like that.

I can't find the actual Chill Soul Weapon to add it to a CaH.

 

Thanks for the help.

Also, how do i change the TextLabel and DescripLabel to show what i want in-game?

Thanks again!



#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 18 April 2019 - 09:00 AM

Unit:

;----------------------------CHILL SOUL-----------------------------------------    
    Behavior = FireWeaponUpdate ModuleTag_WeaponFiring
        FireWeaponNugget
            WeaponName = ChillSoulRadiusWeapon
            Offset = X:0 Y:0 Z:0
            FireDelay = 0
            OneShot = No
        End
    End

Commandset

CommandSet AngmarKarshCommandSet
	1 	= Command_ToggleStance
	2 	= Command_ChillSoul
	3	= Command_KarshBlink
	4 	= Command_WhisperofDeath
	12 	= Command_CaptureBuilding
	13 	= Command_AttackMove
	14 	= Command_Stop
	16  	= Command_SetStanceBattle
	17  	= Command_SetStanceAggressive
	18  	= Command_SetStanceHoldGround
End 

Commandbutton:

CommandButton Command_ChillSoul
 Command = FIRE_WEAPON
 Options         = NONPRESSABLE
 TextLabel = CONTROLBAR:SpecialAbilityChillSoul
 ButtonImage = KUChillSoulIcon
 ButtonBorderType = ACTION
 DescriptLabel = CONTROLBAR:ToolTipSpecialAbilityChillSoul
 InvalidCursorName = GenericInvalid
 ; UnitSpecificSound =
 InPalantir             = Yes
End

What exactly does the power do? According to what i see here it isn't triggered manually?

Maybe adding a commandbutton like the one above with the CAH things should allow it to work:

(sample CAH properties)

    CreateAHeroUIAllowableUpgrades             =    Upgrade_CreateAHero_ClassIstariWizard
    CreateAHeroUIMinimumLevel                 = 3
    CreateAHeroUIPrerequisiteButtonName = None
    CreateAHeroUICostIfSelected                 = CAH_TELEPORTLEVEL1_COST

The text label and description and all that is handled in the lotr.str file.

Those are the localized strings.

https://www.the3rdag...item-59?addview


Ridder Geel

#3 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 19 April 2019 - 11:19 PM

In the tutorial it has a step for creating the upgrade:

;;; PASSIVE OUTLAW LEADERSHIP;;;
    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CaHOutlawLeadershipEnabler
        SpecialPowerTemplate = SpecialAbilityCaHFakeLeadership2
        TriggeredBy = Upgrade_CaHOutlawLeader
    End
    Behavior = SpecialPowerModule ModuleTag_CaHOutlawLeadershipUpdate
        SpecialPowerTemplate     = SpecialAbilityCaHFakeLeadership2
        UpdateModuleStartsAttack = No
        StartsPaused = Yes
    End    
    Behavior = AttributeModifierAuraUpdate ModuleTag_CaHOutlawLeadership
        StartsActive    = No;If no, requires upgrade to turn on.
        BonusName        = EomerPassiveOutlawLeadership
        TriggeredBy        = Upgrade_CaHOutlawLeader
        RefreshDelay    = 2000
        Range            = 200
        AllowSelf        = Yes
        ObjectFilter    = ANY +CAVALRY +INFANTRY -STRUCTURE -BASE_FOUNDATION -DOZER
    End

Then:

Upgrade Upgrade_CaHOutlawLeader
Type             = OBJECT
End

But ChillSoul's code is very different, so I can't seem to find a way to make the upgrade the same way as in the tutorial.

;----------------------------CHILL SOUL-----------------------------------------    
    Behavior = FireWeaponUpdate ModuleTag_WeaponFiring
        FireWeaponNugget
            WeaponName = ChillSoulRadiusWeapon
            Offset = X:0 Y:0 Z:0
            FireDelay = 0
            OneShot = No
        End
    End

I have successfully added Eomer's Outlaw Leadership, Mouth of Sauron's Discent, and Witch King's Dread Wrath. But due to Karsh's code being different, i can't.

 

Really appreciate the help!



#4 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 19 April 2019 - 11:20 PM

Link to the tutorial i'm talking about: https://forums.revor...-a-hero-powers/

 

I have added the powers i mentioned before this way.



#5 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 20 April 2019 - 09:46 PM

Anyone?



#6 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 20 April 2019 - 10:40 PM

So, after all i had to make a new aura upgrade and have it with the ChillSoul modifier.

I suppose it works just the same.

 

Thanks for the help!

 

Nvm, that didn't actually work. It did nothing.

Still need help :(


Edited by shadowchoko666, 20 April 2019 - 11:14 PM.


#7 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 24 April 2019 - 11:45 AM

What if you throw the weapon it fires into a WeaponFireSpecialAbilityUpdate:

Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_TheWeaponFireSpecialAbilityUpdate
SpecialPowerTemplate = SpecialAbilityZephyrStrike
PreparationTime = 1000
PackTime = 1000
UnpackTime = 1000
UnpackingVariation = 1
MustFinishAbility = Yes
TriggerModelConditionDuration = 700
SpecialWeapon = ChillSoulRadiusWeapon
WhichSpecialWeapon = 1
SkipContinue = Yes
BusyForDuration = 1000
End

Maybe if you can do that in combination with the SpecialPowerModule you mention up there that triggers it it might work?

 

    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CaHOutlawLeadershipEnabler
        SpecialPowerTemplate = SpecialAbilityCaHFakeLeadership2
        TriggeredBy = Upgrade_CaHOutlawLeader
    End
    Behavior = SpecialPowerModule ModuleTag_CaHOutlawLeadershipUpdate
        SpecialPowerTemplate     = SpecialAbilityCaHFakeLeadership2
        UpdateModuleStartsAttack = Yes
        StartsPaused = Yes
    End 

Edited by Ridder Geel, 24 April 2019 - 11:53 AM.

Ridder Geel

#8 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 26 April 2019 - 07:01 AM

That didn't work :(

Perhaps I did something wrong?

 

Createaheropowers.ini

Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CaHChillSOulEnabler
        SpecialPowerTemplate = CaHChillSOul
        TriggeredBy = Upgrade_CaHChillSOul
    End
    Behavior = SpecialPowerModule ModuleTag_CaHChillSOulUpdate
        SpecialPowerTemplate     = CaHChillSOul
        UpdateModuleStartsAttack = Yes
        StartsPaused = Yes
    End 
Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_CaHChillSOulWeaponUpdate
 SpecialPowerTemplate = CaHChillSOul
 PreparationTime = 1000
 PackTime = 1000
 UnpackTime = 1000
 UnpackingVariation = 1
 MustFinishAbility = Yes
 TriggerModelConditionDuration = 700
 SpecialWeapon = ChillSoulRadiusWeapon
 WhichSpecialWeapon = 1
 SkipContinue = Yes
 BusyForDuration = 1000
End

Createaherospecialpowers.ini

 

SpecialPower CaHChillSOul
Enum   = SPECIAL_FAKE_LEADERSHIP_BUTTON
ReloadTime   = 1
PublicTimer   = No
End

Createaheroupgrades.ini

Upgrade Upgrade_CaHChillSOul
Type = Object
End

Commandbutton.ini

CommandButton Command_CAHChillSoul
  Command                 = SPECIAL_POWER
  Options   = NONPRESSABLE 
 SpecialPower            = CaHChillSOul
  TextLabel               = CONTROLBAR:SpecialAbilityChillSoul
  ButtonImage             = KUChillSoulIcon
  ButtonBorderType        = ACTION 
  DescriptLabel           = CONTROLBAR:ToolTipSpecialAbilityChillSoul
  InvalidCursorName       = GenericInvalid
;  UnitSpecificSound       = 
  InPalantir   = Yes
CreateAHeroUIAllowableUpgrades   = Upgrade_CreateAHero_ClassIstariWizard
CreateAHeroUIMinimumLevel   = 1
CreateAHeroUIPrerequisiteButtonName = None
CreateAHeroUICostIfSelected   = 500
End

Thanks again!!

I'm working on a set of skills for the wizard, that being Inspire Fear > Dread Visage > Chill Soul.

 

I will be merging Dread Visage's attributes with Chill Soul's.



#9 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 26 April 2019 - 08:28 AM

well the trigger a weapon isnt the same as a passive leadership, so the SPECIAL_FAKE_LEADERSHIP_BUTTON special power type won't work, and the   Options   = NONPRESSABLE in the commandbutton is a no go.

Try changing them to a button that possibly looks like the CAH word of power or such :p


Ridder Geel

#10 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 26 April 2019 - 10:57 PM

That didn't work either :(

Maybe this one power isn't allowed to be modded into CAH?



#11 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 27 April 2019 - 10:56 AM

Well what part doesnt work, is it clickable, does it go on cooldown? I can only help if you are able to be more descriptive.
What exactly does the original power do, it seems from code I saw to trigger a weapon on using it, is this a weapon which happens for a second (or so) or is it a whole different thing?
Ridder Geel

#12 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 28 April 2019 - 04:47 AM

What the ability does is basically slow down nearby enemies and deal damage over time. It is technically an aura ability but as you can see it isn't coded like one.
The button is non-pressable (same as any other passive ability.)
From what i can see it is a "weapon" that deals slight damage on each tick and reduces 50% of movement speed.
I tried avoiding the "weapon" (ChillSoulRadiusWeapon) alltogheter and just make an aura ability with an added speed reduction and didn't work, but had that worked, it would still not have the DoT.

#13 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 30 April 2019 - 07:45 AM

I've tried looking for other modules, but I currently don't have any more time for this:

http://rcmod.the3rda...__behavior.html

See if maybe you can find a module or modules that could allow this behavior.

Maybe you can spawn some object that somehow follows the hero in order to do this behavior...

I hate how EA made such an incomplete mess-up of an engine...


Ridder Geel

#14 shadowchoko666

shadowchoko666
  • Members
  • 16 posts

Posted 30 April 2019 - 08:12 AM

I'll give that a look. Thanks!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users