UFO-Scripts/seq *.ufo

From UFO:AI

Contents

General

The tutorials shown in the main menu are sequences. See TODO.

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.

precache [models|pics]

  • .. for models as parameter: pathnames relative from base-folder
  • .. for pics as parameter: pathnames relative from base/pics-folder
  • .. (string) filenames for models/pics

Example

precache models
{
	models/civilians/male/body01.md2
	models/civilians/male/head01.md2
}
precache pics
{
	ufoai
}

camera NAME

moving
value for zooming
where does it start?
rotation

Example

camera cam1
{
	zoom	1.0
	angles	"30 225 0"
	dist	100
}

2dobj NAME

the translateable text
x, y (normalized to 1024x768 resolution)
ur, ul, uc, ...
The RGBA value for the 2dobj
RGBA
speed in two directions (x,y)
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
value used for scaling the 2dobj
the RGBA value for the background color
the font that should be used to display the text (see font definitions)
the image path - relative to base/pics

Example

2dobj herby_text
{
	text	"Code, Visual Effects"
	pos	"974 50"
	align	ur
	color	"0 1 0 0"
	fade	"0 0 0 1"
}

model NAME

see anm-file for model
skinnumber
parent model (e.g. head and body) (at head: name of the body-model)
speed in all three directions (x,y,z)
moving
where does it start?
rotation

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
}

General

value of seconds to wait
command to execute
remove a ressource - string is the NAME of the ressource to remove

Example

wait 0.2
rem herby_body
rem herby_head
rem herby_text

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
}
project-navigation