Difference between revisions of "AlcScript"
(→List of Properties) |
|||
Line 3: | Line 3: | ||
*[[Beginner's Guide to AlcScript]] | *[[Beginner's Guide to AlcScript]] | ||
=List of Properties= | =List of Properties= | ||
− | This list describes current | + | This list describes current AlcScript properties. If you add to it, be sure to add it under the correct code. Use heading levels to reflect the AlcScript indentation level. |
Follow the example given to describe the functionality of the field. | Follow the example given to describe the functionality of the field. | ||
== type == | == type == | ||
Line 72: | Line 72: | ||
'''softvolume.type''' ''type'':string ''range'':[bounds, convex] ''default'':convex | '''softvolume.type''' ''type'':string ''range'':[bounds, convex] ''default'':convex | ||
The type of soft volume region. ''Bounds'' will use the bounding box of the object, while ''convex'' will take the individual faces and generate a soft volume object. | The type of soft volume region. ''Bounds'' will use the bounding box of the object, while ''convex'' will take the individual faces and generate a soft volume object. | ||
+ | |||
=AlcScript Technical Information= | =AlcScript Technical Information= | ||
''See [[AlcScript Technical Information]].'' | ''See [[AlcScript Technical Information]].'' |
Revision as of 16:18, 13 January 2008
AlcScript is a simple way to use a limited form of programming in your Ages.
AlcScript Tutorials
List of Properties
This list describes current AlcScript properties. If you add to it, be sure to add it under the correct code. Use heading levels to reflect the AlcScript indentation level. Follow the example given to describe the functionality of the field.
type
type type:string
Can be used to set the alctype of an object.
visual
physical
friction
physical.friction type: float
Sets friction of object. If not set, or if set to a value lower than 0.0, friction will be disabled. (This means full friction)
elasticity
physical.elasticity type: float
Sets elasticity of object. Only useful on kickables.
campassthrough
physical.campassthrough type: boolean string ('true' or 'false')
If set to 'true', the camera will pass through the object. If omitted or not set to 'true' the object will block the camera.
camera
brain
Contains camera brain settings:
type
camera.brain.type type:string range:[fixed, circle, firstperson, avatar] default: fixed
Sets the type of camera brain to use. Further camera.brain keys depend on brain type used.
sound
flags
sound.flags type:string range:[loop, 3d, start] default:null
This controls the sound properties. These can be combined! loop: causes the sound file to loop indefinitely 3d: causes the sound to occur from a 3D emission point start: causes the sound to start immediately upon linking in
To combine the properties, separate them with the pipe character (|).
type = loop|start (Will cause the sound to start automatically and loop)
file
sound.file type:string
This is the name of the Blender Sound block that will be exported as a sound file. Do not include the .wav extension.
type
sound.type type:string range:[SoundFX, Ambience, BackgroundMusic, GUISound, NPCVoices] default:Ambience
This controls which type of sound it is. Remember that the volume can be adjusted for each type, so be sure to set the type correctly.
volume
sound.volume type:float
A value between 0.0 and 1.0 that determines the maximum volume of the sound.
softvolume
sound.softvolume type:string
The name of a soft volume object in the Age to which the sound will be confined. You can combine soft volumes using the same method as for lights (U for union, I for intersection, ! for inverse). This will make your sound not work. Do not use it at this point.
channel
sound.channel type:string range:[left, right] default:null
The channel to which the sound is bound. If no channel is specified, then the sound will be heard through both channels.
softvolume
Not currently implemented
type
softvolume.type type:string range:[bounds, convex] default:convex
The type of soft volume region. Bounds will use the bounding box of the object, while convex will take the individual faces and generate a soft volume object.