GetParameters

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

I cannot make GetParameters work with style and shape, such as this example:

Code: Select all

<EffectType UNID="&efLaserBeamDefault2;"
			instance=			"owner"
			>
		
		<Effect>
			<Ray
					
					length=			"100"
					width=			"100"
					intensity=			"100"
					primaryColor=			"#C42AF1"
					secondaryColor=			"#C000FF"
					
					/>
		</Effect>
		<Events>
			<GetParameters>
				;	This event allows us to initialize effect parameters based 
				;	on weapon properties. In particular, we adjust the size of 
				;	the effect based on the amount of average damage.
				;
				;	For weapon effects, gData has the following fields:
				;
				;	damageHP: The average number of hit points of damage.
				;	speed: The speed of the shot (as a percent of lightspeed).
				;
				;	The event must return a structure with each field representing
				;	a parameter for the effect. For Ray effects, valid fields are:
				;	intensity, length, width, primaryColor, and secondaryColor.

				(block Nil
					
					
					{
						style: "jagged"
						shape: "tapered"
					
						}
					)
			</GetParameters>
		</Events>

		
	</EffectType>
Am I doing something wrong or is <GetParameters> never intended to work like that ?
Post Reply