Name | Type | is_array | initial_value |
temp_Group | group | No |
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Revive_Hero_Actions takes nothing returns nothing
local unit PlayerHero
local location RevivePoint
set RevivePoint = GetRectCenter( gg_rct_Revive )
set PlayerHero = GetDyingUnit()
call ReviveHeroLoc( PlayerHero, RevivePoint, true )
set PlayerHero = null
call RemoveLocation(RevivePoint)
endfunction
//===========================================================================
function InitTrig_Revive_Hero takes nothing returns nothing
set gg_trg_Revive_Hero = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_Revive_Hero, Player(0), EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Revive_Hero, function Trig_Revive_Hero_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_DisplayText_Actions takes nothing returns nothing
local force PlayerGroup
set PlayerGroup = GetPlayersAll()
call DisplayTextToForce( PlayerGroup, "Press ESC to refresh your heroes' mana and life. Please give credit if you use in your map. All systems made by ToraxXx" )
call DestroyForce(PlayerGroup)
endfunction
//===========================================================================
function InitTrig_DisplayText takes nothing returns nothing
set gg_trg_DisplayText = CreateTrigger( )
call TriggerRegisterTimerEventSingle( gg_trg_DisplayText, 1.00 )
call TriggerAddAction( gg_trg_DisplayText, function Trig_DisplayText_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_SpellSystem_Actions takes nothing returns nothing
local texttag AbilityName
local unit CastingUnit
set CastingUnit = GetTriggerUnit( )
call CreateTextTagUnitBJ( GetAbilityName(GetSpellAbilityId()), CastingUnit, 0, 10, 0.00, 100, 0.00, 50.00 ) //Change the 3rd, 4th and 5th value to change the text color(RGB)
set AbilityName = GetLastCreatedTextTag()
set CastingUnit = null
call TriggerSleepAction( 2.0 ) //Change the Value "2.0" to how long the text should be displayed.
call DestroyTextTag(AbilityName)
endfunction
//===========================================================================
function InitTrig_Spell_Text takes nothing returns nothing
set gg_trg_Spell_Text = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Spell_Text, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddAction( gg_trg_Spell_Text, function Trig_SpellSystem_Actions )
endfunction
function Trig_test1_Actions takes nothing returns nothing
call TriggerRegisterUnitEvent( gg_trg_DisplayDMG, GetEnteringUnit(), EVENT_UNIT_DAMAGED )
endfunction
//===========================================================================
function InitTrig_AddEvent takes nothing returns nothing
set gg_trg_AddEvent = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_AddEvent, GetEntireMapRect() )
call TriggerAddAction( gg_trg_AddEvent, function Trig_test1_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_test2_Actions takes nothing returns nothing
// Remove the lines with a "//blood" behind it to remove the blood effect|Remove the lines with a "//DMG" behind it to remove the damage dislay
local unit DamageTakingUnit
local texttag DamageText //DMG
local effect BloodEffect //blood
set DamageTakingUnit = GetTriggerUnit()
call AddSpecialEffectTargetUnitBJ( "foot", DamageTakingUnit, "Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodFootman.mdl" ) //blood
set BloodEffect = GetLastCreatedEffectBJ() //blood
call CreateTextTagUnitBJ( I2S(R2I(GetEventDamage())), DamageTakingUnit, 0, 10, 0.00, 0.00, 100, 70.00 ) //DMG//Change the 3rd, 4th and 5th value to change the text color(RGB)
set DamageText = GetLastCreatedTextTag() //DMG
set DamageTakingUnit = null
call TriggerSleepAction( 0.33 ) //Change the "0.33" on how long the text should be displayed.
call DestroyTextTag(DamageText) //DMG
call DestroyEffectBJ(BloodEffect) //blood
endfunction
//===========================================================================
function InitTrig_DisplayDMG takes nothing returns nothing
set gg_trg_DisplayDMG = CreateTrigger( )
call TriggerAddAction( gg_trg_DisplayDMG, function Trig_test2_Actions )
endfunction
//TESH.scrollpos=0
//TESH.alwaysfold=0
function Trig_Death_Text_Actions takes nothing returns nothing
local unit DyingUnit
local texttag DeathText
set DyingUnit = GetDyingUnit()
call CreateTextTagUnitBJ("Death!", DyingUnit, 0.00, 10.00, 100, 0.00, 0.00, 50.00) // Change the "Death!" to the text you want to display and change the 3rd, 4th and 5th number value to change the colour of the displayed text (RGB)
set DeathText = GetLastCreatedTextTag()
set DyingUnit = null
call TriggerSleepAction( 1.00 ) //Change the value to how many seconds the text should be displayed
call DestroyTextTagBJ( DeathText )
endfunction
//===========================================================================
function InitTrig_Death_Text takes nothing returns nothing
set gg_trg_Death_Text = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Death_Text, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddAction( gg_trg_Death_Text, function Trig_Death_Text_Actions )
endfunction