function terrainsweep takes rect thisrect, integer thistype returns nothing
// Village Dirt
// Village Rough dirt
// Village crops *unused*
// Village cobble path
// Village stone path (unused)
// Village short grass
// Village rocks
// Village thick grass
// Ashenvale lumpy grass
// loraeron winter snow
// Barrens dark desert
// Felwood rough dirt
// thisrect is the region to affect
// thistype is the type of weather effect (0 just returns, so I can be lazy and use a detault value of 0 to do nothing)
local integer array terraintiles
local string array specialfxmodels
local real myloopvarA
local real myloopvarB
local real myminlocX = GetRectMinX(thisrect)
local real myminlocY = GetRectMinY(thisrect)
local real mymaxlocX = GetRectMaxX(thisrect)
local real mymaxlocY = GetRectMaxY(thisrect)
if (thistype != 0) then
// 11-20
set terraintiles[1] = 'Vdrr'
set specialfxmodels[1] = "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl"
// 21-30
set terraintiles[2] = 'Vdrt'
set specialfxmodels[2] = "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl"
// 31-40
set terraintiles[3] = 'Agrd'
set specialfxmodels[3] = "Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl"
// 41-50
set terraintiles[4] = 'Cdrd'
set specialfxmodels[4] = "Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl"
// 51-60
set terraintiles[5] = 'Wsnw'
set specialfxmodels[5] = "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl"
// 61-70
set terraintiles[6] = 'Vdrr'
set specialfxmodels[6] = "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl"
// 71-80
set terraintiles[7] = 'Vgrs'
set specialfxmodels[7] = "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl"
// 81-90
set terraintiles[8] = 'Bdsd'
set specialfxmodels[8] = "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl"
// endgame
set terraintiles[9] = 'Vgrt'
set specialfxmodels[9] = "Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl"
set myloopvarA = mymaxlocX - 64
loop
exitwhen myloopvarA < myminlocX
set myloopvarB = mymaxlocY - 64
loop
exitwhen myloopvarB < (myminlocY + 64)
call SetTerrainTypeBJ(Location(myloopvarA, myloopvarB) , terraintiles[thistype], -1, 1, 1 )
call AddSpecialEffectLocBJ( Location(myloopvarA, myloopvarB), specialfxmodels[thistype] )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
set myloopvarB = myloopvarB - 128
endloop
set myloopvarA = myloopvarA - 128
call TriggerSleepAction( 0.20 )
endloop
endif
endfunction
Name | Type | is_array | initial_value |
ChapterCameras | camerasetup | Yes | |
ChapterTitles | string | Yes | |
Colors_RGB | string | Yes | |
CurrentLevel | integer | Yes | -1 |
CurrentTip | integer | Yes | |
Difficulty_LevelButtons | button | Yes | |
Difficulty_Screen | dialog | No | |
DifficultyAverage | integer | No | -1 |
DisclaimerLeave | button | No | |
DisclaimerPlay | button | No | |
DisclaimerScreen | dialog | No | |
EnemyCount | integer | Yes | |
EnemyType | unitcode | Yes | |
HelpBox | dialog | No | |
i | integer | No | |
i2 | integer | No | |
KillZones | rect | Yes | |
LevelBonuses | integer | Yes | |
LevelWarnings | string | Yes | |
LevelWeathers | integer | Yes | -1 |
LivePenalties | integer | Yes | 1 |
LocalPlayer | player | No | |
MassTeleSpawn | effect | Yes | |
Multiboard | multiboard | No | |
MultiboardPC | integer | No | |
MultiboardPlayers | player | Yes | |
MusicOffsets | real | Yes | 0.00 |
MusicStrings | string | Yes | |
NumberofLevels | integer | No | 0 |
PlayerDefeated | boolean | Yes | |
PlayerDifficulty | integer | Yes | 1 |
PlayerFields | rect | Yes | |
PlayerFighting | boolean | Yes | |
PlayerHasWeather | boolean | Yes | true |
PlayerKills | integer | Yes | |
PlayerLives | integer | Yes | 25 |
PlayerNW | integer | Yes | |
PlayerNW2 | integer | Yes | |
PlayerPaused | boolean | Yes | |
PlayerReady | boolean | Yes | |
PlayerTerrains | rect | Yes | |
PlayerTimers | integer | Yes | |
PlayerTipsOn | boolean | Yes | true |
PlayerVotedDifficulty | boolean | Yes | |
PlayerWeather | weathereffect | Yes | |
PlayerWeatherC | integer | Yes | |
RandomTips | string | Yes | |
RandomTipsTotal | integer | No | |
ReverseLevel | boolean | Yes | |
Seendisclaimer | boolean | Yes | false |
SinglePgs | force | Yes | |
SpawnZones | rect | Yes | |
StartCamera | camerasetup | Yes | |
StartZones | rect | Yes | |
TempGroup | group | No | |
TempLoc | location | No | |
TempString | string | No | |
TerrainTypes | integer | Yes | |
TotalPlayers | integer | No | 10 |
TutorialStrings | string | Yes | |
wincounter | integer | No | |
WinIntA | integer | No | |
WinIntB | integer | No | |
WinningPlayer | integer | No |
function Trig_Setup_music_array_Actions takes nothing returns nothing
set udg_MusicStrings[0] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
set udg_MusicStrings[1] = "Sound\\Music\\mp3Music\\Undead1.mp3"
set udg_MusicStrings[5] = "Sound\\Music\\mp3Music\\Undead3.mp3"
set udg_MusicStrings[6] = "Sound\\Music\\mp3Music\\Undead2.mp3"
set udg_MusicStrings[10] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[11] = "Sound\\Music\\mp3Music\\Human2.mp3"
set udg_MusicStrings[15] = "Sound\\Music\\mp3Music\\Human1.mp3"
set udg_MusicStrings[16] = "Sound\\Music\\mp3Music\\HumanX1.mp3"
set udg_MusicStrings[20] = "Sound\\Music\\mp3Music\\MainScreen.mp3"
set udg_MusicStrings[21] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
set udg_MusicStrings[25] = "Sound\\Music\\mp3Music\\NagaTheme.mp3"
set udg_MusicStrings[26] = "Sound\\Music\\mp3Music\\DarkAgents.mp3"
set udg_MusicStrings[30] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[31] = "Sound\\Music\\mp3Music\\NightElf2.mp3"
set udg_MusicStrings[35] = "Sound\\Music\\mp3Music\\NightElf3.mp3"
set udg_MusicOffsets[35] = 51.00
set udg_MusicStrings[36] = "Sound\\Music\\mp3Music\\NightElf1.mp3"
set udg_MusicStrings[40] = "Sound\\Music\\mp3Music\\NightElfX1.mp3"
set udg_MusicOffsets[40] = 23.00
set udg_MusicStrings[41] = "Sound\\Music\\mp3Music\\Undead2.mp3"
set udg_MusicStrings[45] = "Sound\\Music\\mp3Music\\Undead3.mp3"
set udg_MusicStrings[46] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[50] = "Sound\\Music\\mp3Music\\ArthasTheme.mp3"
set udg_MusicStrings[51] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
set udg_MusicStrings[55] = "Sound\\Music\\mp3Music\\NagaTheme.mp3"
set udg_MusicStrings[56] = "Sound\\Music\\mp3Music\\DarkAgents.mp3"
set udg_MusicStrings[60] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[61] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
set udg_MusicStrings[65] = "Sound\\Music\\mp3Music\\NagaTheme.mp3"
set udg_MusicStrings[66] = "Sound\\Music\\mp3Music\\DarkAgents.mp3"
set udg_MusicStrings[70] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[71] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
set udg_MusicStrings[75] = "Sound\\Music\\mp3Music\\NagaTheme.mp3"
set udg_MusicStrings[76] = "Sound\\Music\\mp3Music\\DarkAgents.mp3"
set udg_MusicStrings[80] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[81] = "Sound\\Music\\mp3Music\\OrcX1.mp3"
set udg_MusicStrings[85] = "Sound\\Music\\mp3Music\\Orc1.mp3"
set udg_MusicOffsets[85] = 128.00
set udg_MusicStrings[86] = "Sound\\Music\\mp3Music\\Orc3.mp3"
set udg_MusicStrings[90] = "Sound\\Music\\mp3Music\\Doom.mp3"
set udg_MusicStrings[91] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[92] = "Sound\\Music\\mp3Music\\MainScreen.mp3"
set udg_MusicStrings[93] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[94] = "Sound\\Music\\mp3Music\\NightElfX1.mp3"
set udg_MusicOffsets[94] = 23.00
set udg_MusicStrings[95] = "Sound\\Music\\mp3Music\\ArthasTheme.mp3"
set udg_MusicStrings[96] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[97] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[98] = "Sound\\Music\\mp3Music\\UndeadX1.mp3"
set udg_MusicStrings[99] = "Sound\\Music\\mp3Music\\Doom.mp3"
set udg_MusicStrings[100] = "Sound\\Music\\mp3Music\\Comradeship.mp3"
call DisableTrigger( GetTriggeringTrigger() )
endfunction
//===========================================================================
function InitTrig_Setup_music_array takes nothing returns nothing
set gg_trg_Setup_music_array = CreateTrigger( )
call TriggerAddAction( gg_trg_Setup_music_array, function Trig_Setup_music_array_Actions )
endfunction
function Trig_test_Actions takes nothing returns nothing
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMinX(GetPlayableMapRect()), GetRectMinY(GetPlayableMapRect())), 'Vdrt', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vdrr', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vcrp', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vcbp', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vstp', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vgrs', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vrck', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vgrt', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Agrd', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Wsnw', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Bdsd', -1, 1, 1 )
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Cdrd', -1, 1, 1 )
call SetBlightRectBJ( true, Player(0), GetPlayableMapRect() )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "abilities\\weapons\\DemolisherMissile\\DemolisherMissile.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Units\\Undead\\PlagueCloud\\PlagueCloudtarget.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Abilities\\Spells\\Human\\Blizzard\\BlizzardTarget.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "units\\human\\WaterElemental\\WaterElemental.mdl" )
call TriggerSleepAction( 0.20 )
endfunction
//===========================================================================
function InitTrig_test takes nothing returns nothing
set gg_trg_test = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_test, Player(0), "-terrain", true )
call TriggerAddAction( gg_trg_test, function Trig_test_Actions )
endfunction
function Trig_terrain_sweep_test_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl" )
call AddSpecialEffectLocBJ( GetRectCenter(GetPlayableMapRect()), "Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl" )
endfunction
//===========================================================================
function InitTrig_terrain_sweep_test takes nothing returns nothing
set gg_trg_terrain_sweep_test = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_terrain_sweep_test, Player(0), "-terrain", true )
call TriggerAddAction( gg_trg_terrain_sweep_test, function Trig_terrain_sweep_test_Actions )
endfunction
function Trig_test_Copy_Actions takes nothing returns nothing
call SetTerrainTypeBJ( OffsetLocation(GetRectCenter(gg_rct_PlayerTerrain01), GetRectMaxX(GetPlayableMapRect()), GetRectMaxX(GetPlayableMapRect())), 'Vgrt', -1, 1, 1 )
endfunction
//===========================================================================
function InitTrig_test_Copy takes nothing returns nothing
set gg_trg_test_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_test_Copy, Player(0), "-terrain", true )
call TriggerAddAction( gg_trg_test_Copy, function Trig_test_Copy_Actions )
endfunction
function Trig_just_debug_Actions takes nothing returns nothing
call PlayThematicMusicBJ( "Sound\\Music\\mp3Music\\HumanX1.mp3" )
endfunction
//===========================================================================
function InitTrig_just_debug takes nothing returns nothing
set gg_trg_just_debug = CreateTrigger( )
call TriggerAddAction( gg_trg_just_debug, function Trig_just_debug_Actions )
endfunction