Jump to content


Photo

A Special Ability problem


  • Please log in to reply
6 replies to this topic

#1 Rockon12

Rockon12
  • Project Team
  • 197 posts
  • Location:United States
  • Projects:Age of Elves, Galaxy at War

Posted 17 March 2006 - 12:43 AM

Ok, I haven't had to ask for coding help in a while but this is a real stumper. I'm trying to add a power to Haldir that temporarily increases the vision and range of all nearby archers. Here's the code:

Haldir.ini
;;; VOLLEY FIRE SPECIAL POWER;;;--------------------------------
	Behavior = UnpauseSpecialPowerUpgrade ModuleTag_VolleyFireEnabler
		SpecialPowerTemplate = SpecialAbilityHaldirVolleyFire
		TriggeredBy = Upgrade_HaldirVolleyFire
	End
	Behavior = SpecialPowerModule ModuleTag_VolleyFireUpdate   
		SpecialPowerTemplate	  = SpecialAbilityHaldirVolleyFire
		UpdateModuleStartsAttack  = Yes
		StartsPaused = Yes
		AttributeModifier = HaldirVolleyFire
		AttributeModifierRange = 200
		AttributeModifierAffectsSelf = Yes
		AttributeModifierAffects = ANY +ARCHER
		AttributeModifierFX = FX_HaldirVolleyFireFX
	End
	
	Behavior = SpecialAbilityUpdate ModuleTag_HaldirVolleyFire
		UnpackTime			  = 1000
		UnpackingVariation		= 1		
		SpecialPowerTemplate	= SpecialAbilityHaldirVolleyFire
		PreparationTime		 = 0  
 		PersistentPrepTime	  = 0
 		PackTime				= 1330
 	End

attributemodifier.ini
ModifierList HaldirVolleyFire
	Category = LEADERSHIP
	Modifier = RANGE 200%			
	Modifier = VISION 200%	
	Duration = 20000			; if you mess with this value, you must also change the times in FX_TheodenGloriousChargeFX
End

I don't get this at all. When I hit the button, the nearby archers have the FX but not the attribute modifier. I copied most of this code from Theoden's glorious charge, and really, the only things I changed was changed everything that said TheodenGloriousCharge into HaldirVolleyFire (and yes, I did make an upgrade and special power template that are exact copies of TheodenGloriousCharge but with the name HaldirVolleyFire). I also changed the filter from ANY +CAVALRY to ANY +ARCHER, but that't not an issue because the FX is showing on the archers. I've been working on this for a while and I have no idea what's going on.
Posted Image

#2 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 17 March 2006 - 01:58 PM

Hmm... Are you sure that the attribute modifier isn't working? How can you tell? The Vision modifier doesn't increase the amount of shroud that is cleared (I'm quite sure it doesn't..), so increasing vision is kinda useless unless you're sticking you have enough surrounding area unshrouded.

Posted Image
Posted Image


#3 Rockon12

Rockon12
  • Project Team
  • 197 posts
  • Location:United States
  • Projects:Age of Elves, Galaxy at War

Posted 17 March 2006 - 07:42 PM

Silly me. Is there a way to increase the shroud clear distance with an attribute modifier?
Posted Image

#4 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 18 March 2006 - 12:27 PM

Unfortunately, no. However, your ability is still usefull. Say you have infantry up fighting some people. With this "Volley Fire" ability, your archers could stand further back while attacking the same enemy. As a note: you may want to nerf the amount of range/vision it gives (double range is insanely far ;))

Edited by Celeglin, 18 March 2006 - 12:32 PM.

Posted Image
Posted Image


#5 Rockon12

Rockon12
  • Project Team
  • 197 posts
  • Location:United States
  • Projects:Age of Elves, Galaxy at War

Posted 18 March 2006 - 04:57 PM

Actually thats triple right now, it's additive. I'm taking it back to double though, and it won't be too bad because it will be fairly short-lived. Or maybe I'll make it 75%, we'll see. I think what I'm going to do is increase the shroud clearing range for all elves because they can normally see a lot farther than they can shoot anyways.

On another note...Is there a way to have a special power give a stealth update? I'm pretty sure it can't be done but if anyone has done it or knows how let me know.
Posted Image

#6 Celeglin

Celeglin

    Silhouette of a Serenade

  • Hosted
  • 2,468 posts
  • Projects:The Elven Alliance, Rhovanion Alliance
  •  T3A Team Chamber Member

Posted 19 March 2006 - 02:16 AM

On another note...Is there a way to have a special power give a stealth update? I'm pretty sure it can't be done but if anyone has done it or knows how let me know.


Elven Cloak and the One Ring :blush: .

Posted Image
Posted Image


#7 Rockon12

Rockon12
  • Project Team
  • 197 posts
  • Location:United States
  • Projects:Age of Elves, Galaxy at War

Posted 19 March 2006 - 04:43 AM

Once again...silly me, why didn't I think of that? Sometimes I can be so stupid.
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users