#
# evilscript(tm) 1.0b
#
# script for ukscene invitro to the 2nd london pub meeting on saturday, 20th november 2004
#
# [Commands]
# CreateRGBTexture	(texturename)	(path\filename)
# CreateRGBATexture	(texturename)	(path\texturefilename)	(path\alphafilename)
# MusicLoad		(path\filename)
# MusicPlay		(path\filename)
# Wait			(time in seconds)
# CreateImageLayer	(layername)	(priority (lower value=higher priority, higher gets drawn later))
# Create3DLayer		(layername)	(priority (lower value=higher priority, higher gets drawn later))
# End
#
# [Layer commands: Generic]
# LayerCommand		(layername)	Enable
# LayerCommand		(layername)	Disable
#
# [Layer commands: Image layers]
# LayerCommand		(layername)	FadeToTexture		(texturename)		(time in seconds)
# LayerCommand		(layername)	SetTexture		(texturename)
# LayerCommand		(layername)	SetPos			(xpos (-1..1))		(ypos (-1..1))
# LayerCommand		(layername)	SetMove			(xmove per second)	(ymove per second)
# LayerCommand		(layername)	SetScale		(xscale)		(yscale)
#
# Built-in textures: EmptyTexture, BlackTexture, WhiteTexture 
#


#
# load all resources
#

CreateRGBATexture	Ukscene		data\white512.jpg	data\uksceneA.jpg
CreateRGBATexture	invites		data\white512.jpg	data\invites.jpg
CreateRGBATexture	pubmeet		data\white640.jpg	data\pubmeetA.jpg
CreateRGBATexture	location	data\white640.jpg	data\locationA.jpg
CreateRGBATexture	date		data\white640.jpg	data\dateA.jpg
CreateRGBATexture	plan		data\white640.jpg	data\planA.jpg
CreateRGBATexture	noogz		data\noogz.jpg		data\noogzA.jpg
CreateRGBATexture	noogzW		data\white512.jpg	data\noogzA.jpg
CreateRGBATexture	trace		data\trace.jpg		data\traceA.jpg
CreateRGBATexture	traceW		data\white512.jpg	data\traceA.jpg
CreateRGBATexture	traceT		data\white256.jpg	data\traceT.jpg
CreateRGBATexture	charlesT	data\white256.jpg	data\charlesT.jpg
CreateRGBATexture	evilpaulT	data\white256.jpg	data\evilpaulT.jpg
CreateRGBATexture	smashT		data\white256.jpg	data\smashT.jpg
CreateRGBATexture	soleT		data\white256.jpg	data\soleT.jpg
CreateRGBATexture	noogzT		data\white256.jpg	data\noogzT.jpg
CreateRGBATexture	heroes		data\white640.jpg	data\heroesA.jpg
CreateRGBATexture	flareA		data\white640.jpg	data\flare.jpg
CreateRGBATexture	evilpaulW	data\white512.jpg	data\evilpaulA.jpg
CreateRGBATexture	evilpaul	data\evilpaul.jpg	data\evilpaulA.jpg
CreateRGBATexture	smashW		data\white512.jpg	data\smashA.jpg
CreateRGBATexture	smash		data\smash.jpg		data\smashA.jpg
CreateRGBATexture	soleW		data\white512.jpg	data\soleA.jpg
CreateRGBATexture	sole		data\sole.jpg		data\soleA.jpg
CreateRGBATexture	charlesW	data\white512.jpg	data\charlesA.jpg
CreateRGBATexture	charles		data\charles.jpg	data\charlesA.jpg
CreateRGBATexture	thisway		data\thisway.jpg	data\thiswayA.jpg
CreateRGBATexture	beer		data\beer.jpg		data\beerA.jpg
CreateRGBATexture	lager		data\lager.jpg		data\lagerA.jpg
CreateRGBTexture	unionjack	data\unionjack.jpg
CreateRGBTexture	credits		data\credits.jpg
CreateRGBTexture	dawn		data\dawn.jpg
CreateRGBTexture	images		data\images.jpg
CreateRGBTexture	flare		data\flare.jpg
CreateRGBTexture	envmap		data\envmap.jpg
CreateRGBTexture	andnow		data\andnow.jpg
CreateRGBTexture	map		data\map.jpg


#
# create all layers
#
CreateImageLayer	TopLayer		4		BlackTexture
CreateImageLayer	Text1			8		EmptyTexture
CreateImageLayer	Text2			9		EmptyTexture
CreateImageLayer	Scroll1			10		EmptyTexture
CreateImageLayer	Scroll2			11		EmptyTexture
CreateImageLayer	Scroll3			12		EmptyTexture
CreateImageLayer	Scroll4			13		EmptyTexture
CreateImageLayer	Scroll5			14		EmptyTexture
CreateImageLayer	Scroll6			15		EmptyTexture
CreateImageLayer	3dFader			16		EmptyTexture
Create3DLayer		Logo3dLayer		17		data/uklogo.3ds
CreateImageLayer	BackgroundLayer		18		EmptyTexture
LayerCommand		Logo3dLayer		Disable
LayerCommand		Text1			Disable
LayerCommand		Text2			Disable
LayerCommand		Scroll1			Disable
LayerCommand		Scroll2			Disable
LayerCommand		Scroll3			Disable
LayerCommand		Scroll4			Disable
LayerCommand		Scroll5			Disable
LayerCommand		Scroll6			Disable
LayerCommand		BackgroundLayer		Disable
LayerCommand		Logo3dLayer		SetEnvTexture	envmap


#
# main script
#

MusicPlay	"data\nOOgz-Dementia_praecox-PRE3.ogg"
LayerCommand	TopLayer		FadeToTexture	EmptyTexture			6
LayerCommand	Logo3dLayer		Enable
Wait	10
LayerCommand	TopLayer		Disable


LayerCommand	Text1			Enable
LayerCommand	Text2			Enable
LayerCommand	BackgroundLayer		Enable

# titles

LayerCommand	BackgroundLayer		FadeToTexture	unionjack	4
Wait	2
LayerCommand	Text1			FadeToTexture	ukscene		2
Wait	6
LayerCommand	Text1			FadeToTexture	invites		2
Wait	6
LayerCommand	Text1			FadeToTexture	EmptyTexture	2
Wait	2
LayerCommand	Text2			SetTexture	flareA
LayerCommand	Text1			FadeToTexture	pubmeet		0
LayerCommand	Text2			FadeToTexture	EmptyTexture	2
Wait	6

#
#
#

LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	10
LayerCommand	Text1			FadeToTexture	EmptyTexture	2
Wait	2
LayerCommand	Text2			Disable
LayerCommand	Text1			FadeToTexture	location	2
Wait	6
LayerCommand	Text1			FadeToTexture	date		2
Wait	4.2
LayerCommand	BackgroundLayer		SetTexture	flare
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	4
Wait	1.8
LayerCommand	Text1			FadeToTexture	plan		2
LayerCommand	3dFader			Enable
LayerCommand	3dFader			FadeToTexture	BlackTexture	8
Wait	8
LayerCommand	Text1			FadeToTexture	EmptyTexture	2
Wait	2
LayerCommand	Logo3dLayer		Disable
LayerCommand	3dFader			Disable
LayerCommand	BackgroundLayer		FadeToTexture	map		2
Wait	3.5
LayerCommand	Text1			SetScale	0.8		1
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	lager		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	beer		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	lager		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	thisway		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	0.9
LayerCommand	Text1			FadeToTexture	beer		0
LayerCommand	Text1			FadeToTexture	EmptyTexture	0.5
Wait	1
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	1
Wait	1
LayerCommand	Text1			FadeToTexture	andnow		2
Wait	4
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	1.4

# "heroes of the first pub meeting"

LayerCommand	Scroll1			Enable
LayerCommand	Scroll2			Enable
LayerCommand	Scroll3			Enable
LayerCommand	Scroll4			Enable
LayerCommand	Scroll5			Enable
LayerCommand	Scroll6			Enable
LayerCommand	BackgroundLayer		SetTexture	flare
LayerCommand	Text1			FadeToTexture	heroes		0.2
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	5
Wait	5
LayerCommand	Text1			FadeToTexture	EmptyTexture	1
Wait	1
LayerCommand	Text1			Disable
LayerCommand	Text2			Enable

#evilpaul

LayerCommand	Text2			SetPos		0.75		0.75
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll6			SetScale	1		1
LayerCommand	Scroll6			SetPos		0.6		0.1
LayerCommand	Scroll6			SetMove		-0.1		0
LayerCommand	Scroll6			SetTexture	evilpaulW
LayerCommand	Scroll6			FadeToTexture	evilpaul	1
LayerCommand	Text2			FadeToTexture	evilpaulT	1
Wait	3
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	2

#noogz

LayerCommand	Text2			SetPos		0.5		0.5
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll5			SetPos		0.5		0
LayerCommand	Scroll5			SetMove		-0.1		0
LayerCommand	Scroll5			SetScale	1		1
LayerCommand	Scroll5			SetTexture	noogzW
LayerCommand	Scroll5			FadeToTexture	noogz		1
LayerCommand	Text2			FadeToTexture	noogzT		1
Wait	3
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	2

#trace

LayerCommand	Text2			SetPos		0.5		0.5
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll4			SetScale	1		1
LayerCommand	Scroll4			SetPos		0.5		0
LayerCommand	Scroll4			SetMove		-0.1		0
LayerCommand	Scroll4			SetTexture	traceW
LayerCommand	Scroll4			FadeToTexture	trace		1
LayerCommand	Text2			FadeToTexture	traceT		1
Wait	3
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	2

#sole

LayerCommand	Text2			SetPos		0.75		0.75
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll3			SetScale	1		1
LayerCommand	Scroll3			SetPos		0.5		0
LayerCommand	Scroll3			SetMove		-0.1		0
LayerCommand	Scroll3			SetTexture	soleW
LayerCommand	Scroll3			FadeToTexture	sole		1
LayerCommand	Text2			FadeToTexture	soleT		1
Wait	3
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	1

#charles

LayerCommand	Text2			SetPos		0.5		0.5
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll2			SetScale	1		1
LayerCommand	Scroll2			SetPos		0.5		0
LayerCommand	Scroll2			SetMove		-0.1		0
LayerCommand	Scroll2			SetTexture	charlesW
LayerCommand	Scroll2			FadeToTexture	charles		1
LayerCommand	Text2			FadeToTexture	charlesT	1
Wait	3
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	3

#smash

LayerCommand	Text2			SetPos		0.75		0.75
LayerCommand	Text2			SetScale	0.5		0.5
LayerCommand	Text2			SetMove		-0.25		0
LayerCommand	Scroll1			SetScale	1		1
LayerCommand	Scroll1			SetPos		0.5		0
LayerCommand	Scroll1			SetMove		-0.1		0
LayerCommand	Scroll1			SetTexture	smashW
LayerCommand	Scroll1			FadeToTexture	smash		1
LayerCommand	Text2			FadeToTexture	smashT		1
Wait	2
LayerCommand	Text2			FadeToTexture	EmptyTexture	1
Wait	2


#cleanup
LayerCommand	Scroll6			FadeToTexture	EmptyTexture	2
LayerCommand	Scroll5			FadeToTexture	EmptyTexture	2
LayerCommand	Scroll4			FadeToTexture	EmptyTexture	2
LayerCommand	Scroll3			FadeToTexture	EmptyTexture	2
LayerCommand	Scroll2			FadeToTexture	EmptyTexture	2
LayerCommand	Scroll1			FadeToTexture	EmptyTexture	2
Wait	2.5
LayerCommand	Text2			Disable
LayerCommand	Scroll1			Disable
LayerCommand	Scroll2			Disable
LayerCommand	Scroll3			Disable
LayerCommand	Scroll4			Disable
LayerCommand	Scroll5			Disable
LayerCommand	Scroll6			Disable

# Credits

LayerCommand	BackgroundLayer		FadeToTexture	dawn		2
wait	6
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	3
Wait	3
LayerCommand	BackgroundLayer		FadeToTexture	images		2
Wait	6
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	3
Wait	3
LayerCommand	BackgroundLayer		FadeToTexture	credits		2
wait	8.5
LayerCommand	BackgroundLayer		FadeToTexture	BlackTexture	5
wait	6

End
