UFO-Scripts/seq *.ufo
From UFO:AI
Contents |
[edit]
General
The tutorials shown in the main menu are sequences. See TODO.
[edit]
Sequences
With this type of UFO-script you can make your own sequences. Have a look at the base/ufos/seq_*.ufo for more examples.
[edit]
precache [models|pics]
- .. for
modelsas parameter: pathnames relative from base-folder - .. for
picsas parameter: pathnames relative from base/pics-folder - .. (string) filenames for models/pics
[edit]
Example
precache models
{
models/civilians/male/body01.md2
models/civilians/male/head01.md2
}
precache pics
{
ufoai
}
[edit]
camera NAME
- omega: V_VECTOR
- moving
- zoom: V_FLOAT
- value for zooming
- dist: V_INT
- origin: V_VECTOR
- where does it start?
- angles: V_VECTOR
- rotation
[edit]
Example
camera cam1
{
zoom 1.0
angles "30 225 0"
dist 100
}
[edit]
2dobj NAME
- text: V_TRANSLATION2_STRING
- the translateable text
- pos: V_POS
- x, y (normalized to 1024x768 resolution)
- align: V_ALIGN
- ur, ul, uc, ...
- color: V_COLOR
- The RGBA value for the 2dobj
- fade: V_COLOR
- RGBA
- speed: V_POS
- speed in two directions (x,y)
- relative: V_BOOL
- will be placed relative to previous element - useful if you use translateable text and don't know for sure how many lines the translated text uses
- enlarge: V_POS
- value used for scaling the 2dobj
- bgcolor: V_COLOR
- the RGBA value for the background color
- font: V_STRING
- the font that should be used to display the text (see font definitions)
- image: V_STRING
- the image path - relative to base/pics
- name: V_STRING
[edit]
Example
2dobj herby_text
{
text "Code, Visual Effects"
pos "974 50"
align ur
color "0 1 0 0"
fade "0 0 0 1"
}
[edit]
model NAME
- tag: V_STRING
- anim: V_STRING
- see anm-file for model
- skin: V_INT
- skinnumber
- parent: V_STRING
- parent model (e.g. head and body) (at head: name of the body-model)
- speed: V_VECTOR
- speed in all three directions (x,y,z)
- omega: V_VECTOR
- moving
- origin: V_VECTOR
- where does it start?
- angles: V_VECTOR
- rotation
[edit]
Example
model herby_body
{
model models/civilians/male/body01.md2
skin 2
anim walk0
origin "-277.5 0 0"
speed "60 0 0"
}
model herby_head
{
model models/civilians/male/head01.md2
parent herby_body
tag tag_head
}
[edit]
General
- wait: V_FLOAT
- value of seconds to wait
- cmd: V_STRING
- command to execute
- rem: V_STRING
- remove a ressource - string is the NAME of the ressource to remove
[edit]
Example
wait 0.2 rem herby_body rem herby_head rem herby_text
[edit]
Example
sequence intro
{
cmd "ov_stop;music mission;ov_start;"
cmd "seq_animspeed 100;"
2dobj i_sentence1
{
text "_intro_sentence1"
pos "512 485" align uc
color "0 1 0 1"
speed "0 -30"
relative true
}
2dobj i_sentence2
{
text "_intro_sentence2"
pos "512 510" align uc
color "0 1 0 1"
speed "0 -30"
relative true
}
2dobj i_sentence3
{
text "_intro_sentence3"
pos "512 535" align uc
color "0 1 0 1"
speed "0 -30"
relative true
}
2dobj i_sentence4
{
text "_intro_sentence4"
pos "512 560" align uc
color "0 1 0 1"
speed "0 -30"
relative true
}
2dobj i_sentence5
{
text "_intro_sentence5"
pos "512 585" align uc
color "0 1 0 1"
speed "0 -30"
relative true
}
wait 200.0
rem i_sentence1
rem i_sentence2
rem i_sentence3
rem i_sentence4
rem i_sentence5
}

