Jump to content


Photo

Problem w/ upgrades


  • Please log in to reply
4 replies to this topic

#1 Downfall

Downfall

    Scenarist

  • Members
  • 356 posts
  • Location:Chicago,USA
  •  There is one?

Posted 03 January 2007 - 01:23 AM

I'm trying to add Sauron and Galadriel as Regular Heroes. I almost have everything edited execpt for the Special Powers. I wanted to give them their Powers at progressing levels, so I made upgrades for their Powers so they become active when they reach that level. But when I go to test them out I keep getting this ERROR.

Here's the coding for this particular Error

Behavior = SpecialPowerModule ModuleTag_SauronTerribleFury
		 SpecialPowerTemplate		= SpecialAbilityScreech
		 TriggeredBy				= Upgrade_ObjectLevel3 ;;Upgrade_TerribleFury
		 UpdateModuleStartsAttack	= Yes
		 StartsPaused			 = Yes ;;No
		 TriggerFX					= FX_FearBlast
End

		Behavior = SpecialAbilityUpdate ModuleTag_SauronTerribleFuryUpdate  
		SpecialPowerTemplate		= SpecialAbilityScreech
		AwardXPForTriggering		= 0		
		TriggerSound				= SauronTerribleFury
		EffectRange					= 200
		
		UnpackTime					= 1000
		PreparationTime				= 1
		PackTime					= 7000
End


I first added the Upgrade_TerribleFury to upgrade.ini, but then realised that there's an upgrade cap for ROTWK. So I added the Upgrade_ObjectLevel3 insted. This is the only problem that's arroused so far. The Exerience Levels work perfectly.
"Human beings make strange fauna and flora. From a distance they appear negligible; up close they are apt to appear ugly and malicious."
Henry Miller, Tropic of Cancer


Posted Image

Posted Image

#2 Grim

Grim

    Mad Axe

  • Project Team
  • 537 posts
  •  T3A Team Chamber Member
  • Division:T3A Moderator

Posted 03 January 2007 - 01:56 AM

You can't use a field "triggeredby" in a SpecialPowerModule behavior, you have to add a "unpauseSpecialpowerUpgrade" behavior containing the name of the specialpower and the upgrade able to unpause it.

Have a look around in the code, you will easily find that behavior. Copy/paste and change what you need.
Posted Image

#3 Downfall

Downfall

    Scenarist

  • Members
  • 356 posts
  • Location:Chicago,USA
  •  There is one?

Posted 03 January 2007 - 02:11 AM

You can't use a field "triggeredby" in a SpecialPowerModule behavior, you have to add a "unpauseSpecialpowerUpgrade" behavior containing the name of the specialpower and the upgrade able to unpause it.

Have a look around in the code, you will easily find that behavior. Copy/paste and change what you need.


would it be possible for you to give me an example please, like taking the code I posted and showing what you mean. I'm alittle lost, sorry.
"Human beings make strange fauna and flora. From a distance they appear negligible; up close they are apt to appear ugly and malicious."
Henry Miller, Tropic of Cancer


Posted Image

Posted Image

#4 ched

ched

    .

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

Posted 03 January 2007 - 02:17 AM

	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_TheodenGloriousChargeEnabler
		SpecialPowerTemplate = SpecialAbilityTheodenGloriousCharge
		TriggeredBy = Upgrade_TheodenGloriousCharge
	End
	Behavior = SpecialPowerModule ModuleTag_TheodenGloriousChargeUpdate   
		SpecialPowerTemplate	  = SpecialAbilityTheodenGloriousCharge
		UpdateModuleStartsAttack  = Yes
		StartsPaused = Yes
		AttributeModifier = TheodenGloriousCharge
		AttributeModifierRange = 200
		AttributeModifierAffectsSelf = Yes
		AttributeModifierAffects = ANY +CAVALRY
		AttributeModifierFX = FX_TheodenGloriousChargeFX
	End
	
	Behavior = SpecialAbilityUpdate ModuleTag_GloriousChargeAnimation
		UnpackTime			  = 1000
		UnpackingVariation		= 1
		
		SpecialPowerTemplate	= SpecialAbilityTheodenGloriousCharge
 		PreparationTime		 = 0  
 		PersistentPrepTime	  = 0
 		PackTime				= 1330
 	End


the key bit of code here is StartsPaused in the SpecialPowerModule, which tells the engine to look for a UnpauseSpecialPowerUpgrade, and to check for the existence of the upgrade defined (acquired via any means desired)
Software is like sex; it's better when it's free ~Linus Torvald

#5 Downfall

Downfall

    Scenarist

  • Members
  • 356 posts
  • Location:Chicago,USA
  •  There is one?

Posted 03 January 2007 - 02:56 AM

Thanks ched and Grim. I got it working now. :thumbsdownsmiley:
"Human beings make strange fauna and flora. From a distance they appear negligible; up close they are apt to appear ugly and malicious."
Henry Miller, Tropic of Cancer


Posted Image

Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users