Delphy
21st Jun 02, 12:38 PM
SvK edit:
EBG manual (http://svk.mondrary.com/manual/) that explains how to write effects, and lists all the commands and their functions.
This is intended to be a comprehensive listing of all the EBG commands found, and what they do.
If I've missed any please let me know!
Colour definitions
setColorA
Description: Here you are setting the Red, Green, Blue and the Transparency (Alpha) value.
Syntax: setColorA([r + g * 256 + b * 65536 + a * 65536 * 256])
Example: A half transparent red color
setColorA([255 + 0 * 256 + 0 * 65536 + 128 * 65536 * 256])
Notes: The color value is greatest at 255 for r, g, or b.
The transparency(a) is non-existent at 255, the lower the number the more transparent the attached object becomes.
setDeltaColorA
Description: You are setting a colour change over time. This is in percentage of 255 changes per second.
Syntax: setDeltaColorA(r, g, b, a)
Example: A completely opaque object that becomes completely transparent in 2 seconds.
setDeltaColorA(0.0, 0.0, 0.0, -0.5)
Notes: Since the values can be from 0 to 1, a decrease of 0.5 per second indicates that the object will go from opaque to transparent in 2 seconds.
Velocity definitions
setVelocityInWorldSpace
Description: This indicates whether the objects velocity is relative to the parent or the world.
Syntax: setVelocityInWorldSpace(x), where x = 1 or 0. 1 = World, 0 = Parent.
Example: Can somebody give me an example of this?
setDeltaR
Description:
Syntax: setDeltaR(x, y), where x = any number, and y = 0 - 2pi (value in radians)
Example:
Other definitions
MaxFrequency
Description: Determines the maximum times this effect will show up in game at any one time.
Syntax: MaxFrequency(x) where x is the number is instances.
Example: MaxFrequency(20) which means Homeworld will display 20 effects.
setAddColor
Description:
Syntax:
Example:
eventStart
Description:
Syntax:
Example:
createEffects
Description:
Syntax:
Example:
setMeshAnimation
Description:
Syntax:
Example:
particleBlocks
Description:
Syntax:
Example:
setTumble
Description: is how far the object is rotated on each axis
Syntax:
Example:
setDeltaTumble
Description: Is how fast the object spins on each axis
Syntax:
Example:
setDefaults
Description:
Syntax:
Example:
setLength
Description:
Syntax:
Example:
fmult
Description: multiplies two numbers together.
Syntax:
Example:
modifyLength
Description:
Syntax:
Example:
setIllum
Description: makes the object self-illuminated. It glows.
Syntax:
Example:
setLighting
Description: means that the object is not affected by the lighting in the level
Syntax:
Example:
setDepthWrite
Description:
Syntax:
Example:
Edit: Thanks for the help Crook and Machina :)
EBG manual (http://svk.mondrary.com/manual/) that explains how to write effects, and lists all the commands and their functions.
This is intended to be a comprehensive listing of all the EBG commands found, and what they do.
If I've missed any please let me know!
Colour definitions
setColorA
Description: Here you are setting the Red, Green, Blue and the Transparency (Alpha) value.
Syntax: setColorA([r + g * 256 + b * 65536 + a * 65536 * 256])
Example: A half transparent red color
setColorA([255 + 0 * 256 + 0 * 65536 + 128 * 65536 * 256])
Notes: The color value is greatest at 255 for r, g, or b.
The transparency(a) is non-existent at 255, the lower the number the more transparent the attached object becomes.
setDeltaColorA
Description: You are setting a colour change over time. This is in percentage of 255 changes per second.
Syntax: setDeltaColorA(r, g, b, a)
Example: A completely opaque object that becomes completely transparent in 2 seconds.
setDeltaColorA(0.0, 0.0, 0.0, -0.5)
Notes: Since the values can be from 0 to 1, a decrease of 0.5 per second indicates that the object will go from opaque to transparent in 2 seconds.
Velocity definitions
setVelocityInWorldSpace
Description: This indicates whether the objects velocity is relative to the parent or the world.
Syntax: setVelocityInWorldSpace(x), where x = 1 or 0. 1 = World, 0 = Parent.
Example: Can somebody give me an example of this?
setDeltaR
Description:
Syntax: setDeltaR(x, y), where x = any number, and y = 0 - 2pi (value in radians)
Example:
Other definitions
MaxFrequency
Description: Determines the maximum times this effect will show up in game at any one time.
Syntax: MaxFrequency(x) where x is the number is instances.
Example: MaxFrequency(20) which means Homeworld will display 20 effects.
setAddColor
Description:
Syntax:
Example:
eventStart
Description:
Syntax:
Example:
createEffects
Description:
Syntax:
Example:
setMeshAnimation
Description:
Syntax:
Example:
particleBlocks
Description:
Syntax:
Example:
setTumble
Description: is how far the object is rotated on each axis
Syntax:
Example:
setDeltaTumble
Description: Is how fast the object spins on each axis
Syntax:
Example:
setDefaults
Description:
Syntax:
Example:
setLength
Description:
Syntax:
Example:
fmult
Description: multiplies two numbers together.
Syntax:
Example:
modifyLength
Description:
Syntax:
Example:
setIllum
Description: makes the object self-illuminated. It glows.
Syntax:
Example:
setLighting
Description: means that the object is not affected by the lighting in the level
Syntax:
Example:
setDepthWrite
Description:
Syntax:
Example:
Edit: Thanks for the help Crook and Machina :)