Jump to content


Photo

Chachalon's questions


  • Please log in to reply
5 replies to this topic

#1 Chachalon

Chachalon
  • Members
  • 28 posts
  • Projects:Burning Sky for C&C Tiberian Wars (just some storywriting & concept drawings...)

Posted 05 May 2006 - 10:12 AM

So I had the idea for my mod to have an upgrade for infantry units to enable them to climb walls as walls will be much more important in this mod. But they would need to change their locomotor for that (do they?) to be able to scale walls like goblins... is there any way to change the locomotor by an upgrade? I tried with some kind of "fake-mounting", but that did not work, the "mount" button appeared and was clickable, but nothing happened when clicking on it, didn't turn grey with timer, nothing... can somebody help?

Edited by Chachalon, 06 May 2006 - 10:17 AM.


#2 ched

ched

    .

  • Undead
  • 4,431 posts
  • Location:Angers (France)
  • Projects:Rhovanion Alliance
  •  T3A Team Chamber Member
  • Division:BFME
  • Job:Previous Division Leader

Posted 05 May 2006 - 11:01 AM

Behavior = LocomotorSetUpgrade ModuleTag_ChangeWhatICanWalkOn
			TriggeredBy = Upgrade_Bla
		End

and your locomotorset would look something like :

LocomotorSet
		Locomotor = IamafraidofheightsLocomotor
		Condition = SET_NORMAL
		Speed	 = 65	
	End
	
	LocomotorSet
		Locomotor = IcanclimbwallsLocomotor
		Condition = SET_NORMAL_UPGRADED 
		Speed	 = 65
	End

Software is like sex; it's better when it's free ~Linus Torvald

#3 Chachalon

Chachalon
  • Members
  • 28 posts
  • Projects:Burning Sky for C&C Tiberian Wars (just some storywriting & concept drawings...)

Posted 05 May 2006 - 11:17 AM

thanks a lot! Works perfectly after adding it to unit and horde code :-)

Edited by Chachalon, 05 May 2006 - 12:16 PM.


#4 Chachalon

Chachalon
  • Members
  • 28 posts
  • Projects:Burning Sky for C&C Tiberian Wars (just some storywriting & concept drawings...)

Posted 06 May 2006 - 10:23 AM

OK, I have another question, I'm pretty sure it has been answered already, but I searched the forums and didn't find anything...
I tried to add a new special power to one of my new building, giving my units an armor- and damage-bonus for a certain time, so I made a special power based on Glorious Charge... I created a new special ability, upgrade, attribute modifier & commandbutton, now the button is there and clickable, but nothing happens when I click it. No reload timer, nothing. What did I do wrong? (I had the same problem a while back with trying to add a similar power to a horde, so if someone could help it would solve more than just one problem :-P)

This is the part of the ability I added to the structure
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GodlyPower
		SpecialPowerTemplate = SpecialAbilityEmpireGodlyPower
		TriggeredBy = Upgrade_EmpireTempleLevel2
	End
	Behavior = SpecialPowerModule ModuleTag_GodlyPowerUpdate
		SpecialPowerTemplate	  = SpecialAbilityEmpireGodlyPower
		UpdateModuleStartsAttack  = Yes
		StartsPaused = Yes
		AttributeModifier = EmpireGodlyPowerModifier
		AttributeModifierRange = 5000
		AttributeModifierAffectsSelf = Yes
		AttributeModifierAffects = NONE +INFANTRY +CAVALRY
	End
The special ability:
SpecialPower SpecialAbilityEmpireGodlyPower
  Enum				= SPECIAL_TRIGGER_ATTRIBUTE_MODIFIER
  ReloadTime		  = 120000; in milliseconds
  InitiateAtLocationSound	 = GondorSoldierCelebratingLarge
;PalantirMovie = PalantirAlert_RohanReinforcements
End
The upgrade:
Upgrade Upgrade_EmpireTempleLevel2
	Type			= OBJECT
	BuildCost		= GONDOR_ARCHERYRANGE_LEVEL2_UPGRADE_COST
	BuildTime		= GONDOR_ARCHERYRANGE_LEVEL2_UPGRADE_BUILDTIME
	DisplayName		= Upgrade:GondorArcheryRangeLevel2
	SkirmishAIHeuristic = AI_UPGRADEHEURISTIC_FACTORY_UNITUNLOCK
End
Attribute modifier:
ModifierList EmpireGodlyPowerModifier; 
	Category					= LEADERSHIP
	Modifier = ARMOR +50%; standard modifier
	Modifier = DAMAGE_MULT 150%
	Duration = 15000; 15 seconds
	FX							= FX_GenericLeadership
End
and command button:
CommandButton Command_SpecialAbilityEmpireGodlyPower
  Command				 = SPECIAL_POWER
  Options				 = NEED_UPGRADE
  NeededUpgrade		= Upgrade_EmpireTempleLevel2
  SpecialPower			= SpecialAbilityEmpireGodlyPower
  TextLabel			   = CONTROLBAR:GloriousCharge
  ButtonImage			 = HPTheodenGloriousCharge
  RadiusCursorType		= TrainingRadiusCursor
  ButtonBorderType		= ACTION
  DescriptLabel		   = CONTROLBAR:ToolTipGloriousCharge
  InPalantir			  = Yes
  AutoAbility			  = Yes
  PresetRange			  = 160.0
  UnitSpecificSound	   = TheodenVoiceGloriousCharge
End

Edited by Chachalon, 06 May 2006 - 10:24 AM.


#5 Solinx

Solinx

    .

  • Undead
  • 3,101 posts
  • Location:The Netherlands
  • Projects:Real Life
  • Division:Revora
  • Job:Retired Leader / Manager

Posted 06 May 2006 - 10:54 AM

OK, I have another question, I'm pretty sure it has been answered already, but I searched the forums and didn't find anything...

I remember someone saying that adding a special power to a horde is not possible. Has been a month or so ago, just after I started modding. So I might remember wrong.

Solinx

Edited by Solinx, 06 May 2006 - 10:54 AM.

Posted Image

"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr


#6 Chachalon

Chachalon
  • Members
  • 28 posts
  • Projects:Burning Sky for C&C Tiberian Wars (just some storywriting & concept drawings...)

Posted 06 May 2006 - 11:51 AM

Hm... well I might try to make that horde-power work like the longshot ability... any ideas about the building's special power?

EDIT: Don't worry about this one, I solved the problem. I just created an invisible object that grants leadership to own units in a very large radius which can be summoned nearly anywhere on the map. Not a perfect solution so if someone has a better idea that would be great... but at least it works.

Edited by Chachalon, 08 May 2006 - 09:13 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users