Jump to content


Photo

adding hero in game.


  • Please log in to reply
23 replies to this topic

#21 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 09 March 2018 - 10:21 PM

So first add this on Bombandil engineering parameters 
 

;------------Bombandil Forest-----------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GlorfindelStarlightEnabler
SpecialPowerTemplate = SpecialAbilityBombandilForest
TriggeredBy = Upgrade_Forest
End
 
Behavior = OCLSpecialPower ModuleTag_GlorfindelStarlight
StartsPaused = Yes
SpecialPowerTemplate = SpecialAbilityBombandilForest
OCL = OCL_SpawnForest
CreateLocation = CREATE_AT_LOCATION
End

Next go to data\ini\specialpower.ini
And put this:
; -----------------------------------------------------------------------------
SpecialPower SpecialAbilityBombandilForest
Enum = SPECIAL_GENERAL_TARGETLESS_THREE
ReloadTime = 120000
;InitiateAtLocationSound = GlorfindelStarlight
End

If you want to get more or less time change 120000 (this is cooldown time in milliseconds)
Next go to data\ini\objectcreationlist.ini and put this:

;--------------------------------------------------------------------------------------- 
ObjectCreationList OCL_SpawnForest
CreateObject
ObjectNames = ElvenWoodTreeSeed
End
End
 
Next go to data\ini\commanbutton.ini and put this:

CommandButton Command_SpecialAbilityBombandilForest
  Command           = SPECIAL_POWER
  SpecialPower      = SpecialAbilityBombandilForest
  TextLabel = CONTROLBAR:GlorfindelStarlight
DescriptLabel = CONTROLBAR:ToolTipGlorfindelStarlight
ButtonImage = HSGlorfindelStarlight
ButtonBorderType = ACTION
InPalantir = Yes
AutoAbility = No
;UnitSpecificSound = GlorfindelStarlight
 
End

Next go to data\ini\upgrade.ini and put this:

Upgrade Upgrade_Forest
  Type              = OBJECT
End
 

Next go to data\ini\experiencelevels.ini and found Bombandil
My code is:
 

;----------------- Tom Bombadil ---------------------------
ExperienceLevel TomBombadilLevel10
TargetNames = TomBombadil TomBombadil_Summoned
RequiredExperience = 1
ExperienceAward = 40
Rank = 10
Upgrades = Upgrade_TomBombadilLeadership Upgrade_Forest  
SelectionDecal
Texture = decal_hero_good
Style = SHADOW_ALPHA_DECAL
OpacityMin = 80%
OpacityMax = 100%
MinRadius = 70
MaxRadius = 200
MaxSelectedUnits = 40
End
END
 

And add to Upgrades = Upgrade_Forest like i do this

And finally go to data\ini\commandset.ini and add this:
 

CommandSet TomBombadilCommandSet
1 = Command_ToggleStance
2 = Command_SpecialAbilitySonicSong
3 = Command_SpecialAbilityBombandilForest
13 = Command_AttackMove
14 = Command_Stop
16  = Command_SetStanceBattle
17  = Command_SetStanceAggressive
18  = Command_SetStanceHoldGround
End

As you see i add number 3 on he commandset

Ok if i remember right, this is all but i dont test this, try and describe

About another powers, build cost,creation time and etc. i help you some time later)

Enjoy!

 


#22 Bad K

Bad K
  • Members
  • 12 posts
  • Location:Zagreb

Posted 10 March 2018 - 01:47 PM

https://imgur.com/a/Z3rov

 

i got this


Bad_K


#23 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 10 March 2018 - 06:43 PM

Im tested and its work 

 

in bombadil ini change this:

;------------Bombandil Forest-----------------------------------------------------------------------------------
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GlorfindelStarlightEnabler
SpecialPowerTemplate = SpecialAbilityBombandilForest
TriggeredBy = Upgrade_Forest
End
 
Behavior = OCLSpecialPower ModuleTag_GlorfindelStarlight
StartsPaused = Yes
SpecialPowerTemplate = SpecialAbilityBombandilForest
OCL = OCL_ElvenWoodSeed2
CreateLocation = CREATE_AT_LOCATION
End
 
i delete old OCL and add this:
 

OCL = OCL_ElvenWoodSeed2

Now delete old OCL or just put in objectcreationlist.ini this:
 

; ---------------------------------------------------------------------------------------
ObjectCreationList OCL_ElvenWoodSeed2
CreateObject
ObjectNames = ElvenWoodTreeSeed
Count = 30
SpreadFormation = Yes
MinDistanceAFormation = 10.0
MinDistanceBFormation = 150.0
MaxDistanceFormation = 150.0
End
End
 

 

About your problem i dont know why button not work but try this:

 

check in experiencelevels.ini in ExperienceLevel TomBombadilLevel10

 

TargetNames = TomBombadil TomBombadil_Summoned

now check bombadil.ini and you need to see same name

Object TomBombadil

in this object you need to add powers after engineering parameters

And double-check all items that i described earlier


Edited by Slava Shadrinov, 11 March 2018 - 10:50 AM.


#24 Slava Shadrinov

Slava Shadrinov
  • Members
  • 178 posts
  • Projects:The Word Of Tolkien Mod

Posted 13 March 2018 - 01:29 PM

If this not worked after this you can give me your file and i try to add this power.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users