Daxter_06
New member
- Joined
- May 9, 2006
- Messages
- 458
Here is my Cinematic script for the Volcano epic. Looks great in the game.
You can also find it at: http://boards.lionhead.com/showthread.php?p=2116955#post2116955
Code:
define script VolcanoScript
begin script VolcanoScript
oTown = 0
vEpic = 0
oVolcano = 0
oVisual = 0
oVisual2 = 0
oVisual3 = 0
oVisual4 = 0
start
oTown = get town with id 0
begin loop
oVolcano = 0
vEpic = get SCRIPT_OBJECT_TYPE_WONDER EPIC_WONDER_NUMBER_VOLCANO at {oTown} radius 200
if vEpic left clicked or vEpic right clicked
wait 1 second
if wonder in hand
begin loop
if wonder fire near hand position radius 0.5
oVolcano = create volcano at hand position player 0
begin cinema
move camera focus to {oVolcano} time -1
move camera position to {oVolcano} time 5
wait 3 seconds
set fade red 255 green 255 blue 255 time 3
wait 1 second
set fade in time 1
wait 1 second
start music "norse_chant_vocal"
set camera focus to {vEpic}
set camera position to {vEpic}+{15,10,5}
invoke vEpic EPIC_WONDER_STAGE_1
wait 5 seconds
invoke vEpic EPIC_WONDER_STAGE_2
move camera position to {vEpic}+{15,20,5} time 5
invoke vEpic EPIC_WONDER_STAGE_3
wait 5 seconds
invoke vEpic EPIC_WONDER_STAGE_4
move camera position to {vEpic}+{15,30,5} time 5
invoke vEpic EPIC_WONDER_STAGE_5
wait 5 seconds
invoke vEpic EPIC_WONDER_STAGE_6
move camera position to {vEpic}+{15,40,5} time 5
invoke vEpic EPIC_WONDER_STAGE_7
wait 5 seconds
invoke vEpic EPIC_WONDER_STAGE_8
move camera position to {vEpic}+{15,50,5} time 5
invoke vEpic EPIC_WONDER_STAGE_9
wait 5 seconds
invoke vEpic EPIC_WONDER_STAGE_10
move camera position to {vEpic}+{15,60,5} time 5
enable predefined sky "volcano" time 5
wait 5 seconds
oVisual = create visual effect VISUAL_EFFECT_EPIC_VOLCANO_BEAM on vEpic time 1
invoke vEpic EPIC_WONDER_STAGE_START_BEAM
wait 2 seconds
set fade red 255 green 255 blue 255 time 3
wait 3 seconds
set fade in time 1
wait 1 second
set camera focus to {oVolcano}
set camera position to {oVolcano}+{0,60,40}
wait 5 seconds
stop visual effect oVisual
invoke vEpic EPIC_WONDER_STAGE_END_BEAM
wait 5 seconds
stop music with fadetime 1
wait 1.5 seconds
invoke oVolcano EPIC_START_SHOCKWAVE
invoke oVolcano EPIC_START_RISING
start music "volcano_music"
set camera position to {oVolcano}+{0,80,60}
wait 5 seconds
move camera focus to {oVolcano} time 3
move camera position to {oVolcano}+{0,90,90} time 5
wait 2 seconds
move camera focus to {oVolcano} time 3
move camera position to {oVolcano}+{0,170,130} time 6
wait 8 seconds
set camera focus to {oVolcano}
set camera position to {oVolcano}+{0,80,40}
set camera roll -20 time -1
invoke oVolcano EPIC_START_EXPLOSION
invoke oVolcano EPIC_FLASH
invoke oVolcano EPIC_START_BUBBLING_LAVA
wait 8 seconds
set camera position to {oVolcano}+{0,80,40}
invoke oVolcano EPIC_START_LAVA
invoke oVolcano EPIC_START_ASH
invoke oVolcano EPIC_START_SMOKE
invoke oVolcano EPIC_START_EXPLOSION
invoke oVolcano EPIC_FLASH
set camera focus to {oVolcano}
set camera position to {oVolcano}+{0,80,80}
invoke oVolcano EPIC_START_ROCK_SHOWER
invoke oVolcano EPIC_SPAWN_ROCKS
wait 5 seconds
set camera position to {oVolcano}+{0,120,120}
invoke oVolcano EPIC_START_EXPLOSION
invoke oVolcano EPIC_FLASH
wait 2 seconds
set camera roll 0 time -1
invoke oVolcano EPIC_START_EXPLOSION
invoke oVolcano EPIC_FLASH
end cinema
disable predefined sky "volcano" time 5
wait 50 seconds
invoke oVolcano EPIC_STOP_ASH
invoke oVolcano EPIC_STOP_SMOKE
invoke oVolcano EPIC_END_ROCK_SHOWER
invoke oVolcano EPIC_START_FALLING
invoke oVolcano EPIC_STOP_BUBBLING_LAVA
wait 10 seconds
invoke oVolcano EPIC_STOP_LAVA
wait 5 seconds
delete oVolcano
oVolcano = 1
end if
until oVolcano == 1
end loop
end if
end if
end loop
end script VolcanoScript
You can also find it at: http://boards.lionhead.com/showthread.php?p=2116955#post2116955