Daxter_06
Member
- Joined
 - May 9, 2006
 
- Messages
 - 459
 
UPDATE ON THE EPIC CINEMATICS
	
	
	
		
				
			
		Code:
	
	define script HurricaneScript
begin script HurricaneScript
oTown = 0
hEpic = 0
oHurricane = 0
oVisual = 0
oVisual2 = 0
oVisual3 = 0
HurricanePos = 0
start
oTown = get town with id 0
begin loop
	oHurricane = 0
	hEpic = get SCRIPT_OBJECT_TYPE_WONDER EPIC_WONDER_NUMBER_HURRICANE at {oTown} radius 200
	if hEpic left clicked or hEpic right clicked
		wait 1 second
		if wonder in hand
		begin loop
		if wonder fire near hand position radius 0.5
                                HurricanePos = marker at hand position
		oHurricane = create hurricane at {HurricanePos} player 0 direction {0, 0, 75}
		begin cinema
                                wait 2 seconds
                                move camera focus to {oHurricane} time 5
                                move camera position to {oHurricane} time 5
                                wait 2 seconds
                                set fade red 255 green 255 blue 255 time 3
                                wait 3 seconds
                                set fade in time 1
                                start music "egypt_chant"
                                set camera focus to {hEpic}+{0,10,0}
                                set camera position to {hEpic}+{25,10,5}
                                wait 5 seconds
                                invoke hEpic EPIC_WONDER_STAGE_1
                                wait 2 seconds
                                move camera focus to {hEpic}+{0,20,0} time 5
                                move camera position to {hEpic}+{25,20,5} time 5
                                wait 2 seconds
                                invoke hEpic EPIC_WONDER_STAGE_2
                                wait 1 second
                                move camera focus to {hEpic}+{0,30,0} time 5
                                move camera position to {hEpic}+{25,30,5} time 5
                                enable predefined sky "hurricane" time 5
                                wait 2 seconds
                                invoke hEpic EPIC_WONDER_STAGE_3
                                invoke hEpic EPIC_WONDER_STAGE_4
                                invoke hEpic EPIC_WONDER_STAGE_5
                                invoke hEpic EPIC_WONDER_STAGE_6
                                invoke hEpic EPIC_WONDER_STAGE_7
                                invoke hEpic EPIC_WONDER_STAGE_8
                                invoke hEpic EPIC_WONDER_STAGE_9
                                invoke hEpic EPIC_WONDER_STAGE_10
                                wait 2.5 seconds
                                move camera focus to {hEpic}+{0,140,0} time 1
                                oVisual = create visual effect VISUAL_EFFECT_HURRICANE_BEAM on hEpic time 1
                                oVisual2 = create visual effect VISUAL_EFFECT_HURRICANE_PULSE on hEpic time 1
                                wait 2 seconds
                                set fade red 255 green 255 blue 255 time 3
                                wait 3 seconds
                                set fade in time 1
                                invoke oHurricane EPIC_WONDER_STAGE_START_BEAM
                                oVisual3 = create visual effect VISUAL_EFFECT_HURRICANE_BEAM at {HurricanePos} time -1
                                set camera focus to {oHurricane}
                                set camera position to {oHurricane}+{0,60,40}
                                wait 5 seconds
                                invoke oHurricane EPIC_WONDER_STAGE_END_BEAM
                                wait 5 seconds
                                stop music with fadetime 1
                                wait 1.5 seconds
                                stop visual effect oVisual3
                                start music "hurricane_music"
                                set camera focus to {oHurricane}
                                set camera position to {oHurricane}+{200,150,200}
                                invoke oHurricane EPIC_START_GROUND_SWIRL
				invoke oHurricane EPIC_START_TOP_SWIRL
                                wait 3 seconds
                                set camera focus to {oHurricane}+{0,250,0}
                                set camera position to {oHurricane}+{55,260,0}
                                wait 3 seconds
                                move camera focus follow oHurricane
                                move camera position follow oHurricane
				invoke oHurricane EPIC_CREATE_CLOUDS
				invoke oHurricane EPIC_SET_CLOUDS_STORM
				wait 10 seconds
                                set camera focus follow oHurricane
                                set camera position follow oHurricane offset {60,100,80}
				invoke oHurricane EPIC_ENTER_TORNADO
				invoke oHurricane EPIC_MOVE_TORNADO
				invoke oHurricane EPIC_ENABLE_TORNADO_DESTRUCTION
				wait 22 seconds
				invoke oHurricane EPIC_DISABLE_TORNADO_DESTRUCTION
				invoke oHurricane EPIC_STOP_TORNADO
				invoke oHurricane EPIC_EXIT_TORNADO
				invoke oHurricane EPIC_CLEAR_CLOUDS
				invoke oHurricane EPIC_END_TORNADO
				delete oHurricane
                              end cinema
                                enable predefined sky "mainsky" time 5
                                invoke hEpic EPIC_WONDER_STAGE_LAST
                                clear right clicked object
                                clear right clicked position
                                clear left clicked object
                                clear left clicked position
				oHurricane = 1
			end if
			until oHurricane == 1 or key KB_ESC down
		end loop
		end if
	end if
end loop
end script HurricaneScript