# Set Unit Behavior Duration
Grammar — Set behavior duration to duration on unit unit
Flags —Native
|Action
Sets a behavior duration on a unit.
# Arguments
unit
— Unitstring
<gamelink::Behavior> — Behaviorfixed
— Duration
Returns — void
native void UnitBehaviorSetDuration(
unit inUnit,
string inBehavior,
fixed inDuration,
);
# Related
Category: Behavior / Basic
- Remove Behaviors By Category —
void
— UnitBehaviorRemoveCategory - Remove Behavior (Player) —
void
— UnitBehaviorRemovePlayer - Remove Behavior —
void
— UnitBehaviorRemove - Add Behavior (Player) —
void
— UnitBehaviorAddPlayer - Add Behavior —
void
— UnitBehaviorAdd - Set Behavior Count —
void
— libNtve_gf_SetBehaviorCount - Number Of Behaviors On Unit —
int
— UnitBehaviorCountAll - Unit Behavior —
string
<gamelink::Behavior> — UnitBehaviorGet - Unit Has Behavior —
bool
— UnitHasBehavior2 - Unit Has Behavior (Enabled) —
bool
— UnitHasBehavior - Unit Behavior Enabled —
bool
— UnitBehaviorEnabled - Stack Count Of Behavior On Unit —
int
— UnitBehaviorCount - Behavior Has Flag —
bool
— UnitBehaviorHasFlag - Transfer Behavior —
void
— UnitBehaviorTransfer - Set Unit Behavior Duration —
void
— UnitBehaviorSetDuration - Set Unit Behavior Duration Remaining —
void
— UnitBehaviorSetDurationRemaining - Duration Remaining Of Behavior On Unit —
fixed
— UnitBehaviorDuration - Duration Of Behavior On Unit —
fixed
— UnitBehaviorDurationTotal - Set Unit Behavior Spawn Count —
void
— UnitBehaviorSpawn - Unit Behavior Effect Player —
int
— UnitBehaviorEffectPlayer - Unit Behavior Effect Unit —
unit
— UnitBehaviorEffectUnit - Set Unit Behavior User Data —
void
— UnitBehaviorEffectTreeSetUserData - User Data Of Behavior On Unit —
fixed
— UnitBehaviorEffectTreeUserData - User Data Of Behavior On Unit Exists —
bool
— UnitBehaviorEffectTreeUserDataExists - Unit Behavior Changes —
void
— TriggerAddEventUnitBehaviorChange - Unit Behavior Changes From Category —
void
— TriggerAddEventUnitBehaviorChangeFromCategory - Triggering Behavior —
string
<gamelink::Behavior> — EventUnitBehavior - Triggering Behavior Change —
int
<preset::BehaviorChange> — EventUnitBehaviorChange - Unit Behavior Damage Modify Remaining —
fixed
— UnitBehaviorDamageModifyRemaining - Unit Behavior Damage Modify Limit —
fixed
— UnitBehaviorDamageModifyLimit - For Each Behavior On Unit — macro
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1296
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BFCA447F"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1396
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BF5546F5"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1506
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/D1A1218F"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1620
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/F6DE8350"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1727
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CCF54A48"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1710
UnitForceStatusBar(EventUnitTargetUnit(), true);
if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);
UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBar", EventUnitTargetUnit(), 1);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1714
}
else {
UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 10);
UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBarFaster", EventUnitTargetUnit(), 1);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2520
gv_fLAGKerrigansearching = true;
UnitBehaviorAdd(gv_uNIT_KERRIGAN, "ProgressBar", gv_uNIT_KERRIGAN, 1);
UnitBehaviorSetDuration(gv_uNIT_KERRIGAN, "ProgressBar", FixedToInt(TimerGetRemaining(gv_kerriganSearchTimer)));
UnitForceStatusBar(gv_uNIT_KERRIGAN, true);
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("KerriganSearch", 0), lv_tARGETunit), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1296
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BFCA447F"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1396
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BF5546F5"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1506
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/D1A1218F"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1620
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/F6DE8350"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1727
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CCF54A48"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:1710
UnitForceStatusBar(EventUnitTargetUnit(), true);
if ((UnitGetType(EventUnitTargetUnit()) == "TerrazineNode")) {
UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 60);
UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBar", EventUnitTargetUnit(), 1);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2map — MapScript.galaxy:1714
}
else {
UnitBehaviorSetDuration(lv_harvestingSCV, "ProgressBar", 10);
UnitBehaviorAdd(EventUnitTargetUnit(), "TerrazineCountdownDummyBarFaster", EventUnitTargetUnit(), 1);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2520
gv_fLAGKerrigansearching = true;
UnitBehaviorAdd(gv_uNIT_KERRIGAN, "ProgressBar", gv_uNIT_KERRIGAN, 1);
UnitBehaviorSetDuration(gv_uNIT_KERRIGAN, "ProgressBar", FixedToInt(TimerGetRemaining(gv_kerriganSearchTimer)));
UnitForceStatusBar(gv_uNIT_KERRIGAN, true);
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("KerriganSearch", 0), lv_tARGETunit), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:506
libNtve_gf_AttachModelToUnit(lp_eggToCorrupt, "ZagaraEggCollection", "Ref_Center");
UnitBehaviorAdd(lp_eggToCorrupt, "TerrazineCountdownDummyBar", lp_eggToCorrupt, 1);
UnitBehaviorSetDuration(lp_eggToCorrupt, "TerrazineCountdownDummyBar", FixedToInt(gv_zagaraEggCorruptionTime));
UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, true);
UnitStatusBarOverride(lp_eggToCorrupt, c_unitStatusGroupAll);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:506
libNtve_gf_AttachModelToUnit(lp_eggToCorrupt, "ZagaraEggCollection", "Ref_Center");
UnitBehaviorAdd(lp_eggToCorrupt, "TerrazineCountdownDummyBar", lp_eggToCorrupt, 1);
UnitBehaviorSetDuration(lp_eggToCorrupt, "TerrazineCountdownDummyBar", FixedToInt(gv_zagaraEggCorruptionTime));
UnitSetState(lp_eggToCorrupt, c_unitStateStatusBar, true);
UnitStatusBarOverride(lp_eggToCorrupt, c_unitStatusGroupAll);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4649
libNtve_gf_PauseUnit(libVCMI_gv_pM_SoATargetingUnit[libVCMI_gv_pM_SoATargetingChargesSpent], true);
UnitBehaviorAdd(libVCMI_gv_pM_SoATargetingUnit[libVCMI_gv_pM_SoATargetingChargesSpent], "SOAThermalLanceStun", libVCMI_gv_pM_SoATargetingUnit[libVCMI_gv_pM_SoATargetingChargesSpent], 1);
UnitBehaviorSetDuration(libVCMI_gv_pM_SoATargetingUnit[libVCMI_gv_pM_SoATargetingChargesSpent], "SOAThermalLanceStun", (0.125 * libVCMI_gv_pM_SoATargetingChargesSpent));
}
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:647
lib6CB3363F_gv_fT_PlayerReloadingTextTag[lp_playerFiring] = TextTagLastCreated();
UnitBehaviorAdd(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], "PlayerReloading", lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], 1);
UnitBehaviorSetDuration(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring], "PlayerReloading", lib6CB3363F_gv_fT_WeaponAmmoReloadTimeMax[lp_gunType]);
lib6CB3363F_gv_fT_PlayerWeaponCurrentReloadTimer[lp_playerFiring] = lib6CB3363F_gv_fT_WeaponAmmoReloadTimeMax[lp_gunType];
if ((lib6CB3363F_gv_fT_PlayerWeaponCurrentAmmo[lp_playerFiring][lib6CB3363F_gv_fT_PlayerWeaponCurrentSelected[lp_playerFiring]] >= lib6CB3363F_gv_fT_WeaponAmmoClipSize[lp_gunType])) {
mods/frontiers.sc2mod — base.sc2data/Lib6CB3363F.galaxy:1710
lib6CB3363F_gv_fT_PlayerReloadingTextTag[EventPlayer()] = TextTagLastCreated();
UnitBehaviorAdd(lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()], "PlayerReloading", lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()], 1);
UnitBehaviorSetDuration(lib6CB3363F_gv_fT_PlayerUnit[EventPlayer()], "PlayerReloading", lib6CB3363F_gv_fT_WeaponAmmoReloadTimeMax[lib6CB3363F_gv_fT_PlayerWeaponType[EventPlayer()][lib6CB3363F_gv_fT_PlayerWeaponCurrentSelected[EventPlayer()]]]);
lib6CB3363F_gv_fT_PlayerWeaponCurrentReloadTimer[EventPlayer()] = lib6CB3363F_gv_fT_WeaponAmmoReloadTimeMax[lib6CB3363F_gv_fT_PlayerWeaponType[EventPlayer()][lib6CB3363F_gv_fT_PlayerWeaponCurrentSelected[EventPlayer()]]];
lv_ammoCountNeeded = (lib6CB3363F_gv_fT_WeaponAmmoClipSize[lib6CB3363F_gv_fT_PlayerWeaponType[EventPlayer()][lib6CB3363F_gv_fT_PlayerWeaponCurrentSelected[EventPlayer()]]] - lib6CB3363F_gv_fT_PlayerWeaponCurrentClipAmmo[EventPlayer()][lib6CB3363F_gv_fT_PlayerWeaponCurrentSelected[EventPlayer()]]);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1618
UnitIssueOrder(lv_itUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructures", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructuresWarning", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1620
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructuresWarning", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:9917
UnitBehaviorAdd(gv__2C_UltimateEvolutionClone, "UltimateEvolutionBuff", libStEx_gv_hERO_PlayerUnit, 1);
TransmissionWait(TransmissionLastSent(), 0.0);
UnitBehaviorSetDuration(gv__2C_UltimateEvolutionClone, "UltimateEvolutionTimedLife", 60.0);
Wait(1.5, c_timeGame);
CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(707), 3.5, -1, 10.0, true);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1618
UnitIssueOrder(lv_itUnit, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructures", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructuresWarning", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1620
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_itUnit, "RavenLordsCurseStructuresWarning", lv_itUnit, 1);
UnitBehaviorSetDuration(lv_itUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:9917
UnitBehaviorAdd(gv__2C_UltimateEvolutionClone, "UltimateEvolutionBuff", libStEx_gv_hERO_PlayerUnit, 1);
TransmissionWait(TransmissionLastSent(), 0.0);
UnitBehaviorSetDuration(gv__2C_UltimateEvolutionClone, "UltimateEvolutionTimedLife", 60.0);
Wait(1.5, c_timeGame);
CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(707), 3.5, -1, 10.0, true);
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:9999
UnitSetPosition(lv_heroUnit, PointFromName(("Shelter - Player Spawn " + IntToString(libGame_gv_players[lv_playerIndex].lv_rosterSlot))), false);
if ((UnitGetType(lv_heroUnit) == "HeroTyrael") && (UnitHasBehavior2(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff") == true)) {
UnitBehaviorSetDuration(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff", 99.0);
UnitBehaviorSetDurationRemaining(lv_heroUnit, "TyraelArchangelsWrathDeathActiveBuff", 99.0);
}
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:10004
if ((UnitGetType(lv_heroUnit) == "HeroUther") && (UnitHasBehavior2(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff") == true)) {
UnitBehaviorSetDuration(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff", 99.0);
UnitBehaviorSetDurationRemaining(lv_heroUnit, "SpiritOfRedemptionSpiritFormBuff", 99.0);
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2119
UnitSetHeight(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1.0, 0.0);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroDiablo") {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2129
UnitSetPosition(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2140
UnitSetPosition(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
else {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2149
UnitSetPosition(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2158
UnitSetHeight(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 2.0, 0.0);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroTyrael") {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2170
UnitSetPosition(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroUther") {
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2185
UnitSetPosition(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2193
libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer] = UnitLastCreated();
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
if ((UnitHasBehavior2(lv_deadHero, "Ultimate1Unlocked") == true)) {
ActorSendAsText(libNtve_gf_MainActorofUnit(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer]), StringExternal("Param/Value/lib_PVEB_76CB6071"));
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:2221
libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer] = UnitLastCreated();
UnitBehaviorAdd(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer], "PVEResurrectRezzable", lv_resurrectTimerDuration);
}
ActorSend(libNtve_gf_MainActorofUnit(libPVEB_gv_pvEResurrectSpirit[lv_deadPlayer]), libNtve_gf_ModelSwap(libCore_gf_GetModelLinkForUnitType(UnitGetType(lv_deadHero)), 0));
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1717
UnitSetHeight(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1.0, 0.0);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroDiablo") {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1727
UnitSetPosition(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1738
UnitSetPosition(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
else {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1747
UnitSetPosition(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1756
UnitSetHeight(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 2.0, 0.0);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroTyrael") {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1768
UnitSetPosition(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
else if (autoCFCA973F_val == "HeroUther") {
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1783
UnitSetPosition(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1791
libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer] = UnitLastCreated();
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
if ((UnitHasBehavior2(lv_deadHero, "Ultimate1Unlocked") == true)) {
ActorSendAsText(libNtve_gf_MainActorofUnit(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer]), StringExternal("Param/Value/lib_PVEM_76CB6071"));
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1819
libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer] = UnitLastCreated();
UnitBehaviorAdd(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer], "DeadHeroResurrectRezzable", lv_resurrectTimerDuration);
}
ActorSend(libNtve_gf_MainActorofUnit(libPVEM_gv_pvEResurrectSpirit[lv_deadPlayer]), libNtve_gf_ModelSwap(libCore_gf_GetModelLinkForUnitType(UnitGetType(lv_deadHero)), 0));
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1409
if ((libLNYF_gv_leaderboard.lv_rank_CurrentPlayer[UnitGetOwner(EventUnit())] == libLNYF_gv_leaderboard.lv_maxPlayers)) {
UnitBehaviorSetDuration(EventUnit(), "LunarFestivalLunarBlessing", 10.0);
}
else if ((libLNYF_gv_leaderboard.lv_rank_CurrentPlayer[UnitGetOwner(EventUnit())] > (libLNYF_gv_leaderboard.lv_maxPlayers - 3))) {
mods/heroesbrawlmods/brawlmapmods/lunarfestival.stormmod — base.stormdata/LibLNYF.galaxy:1412
}
else if ((libLNYF_gv_leaderboard.lv_rank_CurrentPlayer[UnitGetOwner(EventUnit())] > (libLNYF_gv_leaderboard.lv_maxPlayers - 3))) {
UnitBehaviorSetDuration(EventUnit(), "LunarFestivalLunarBlessing", 8.0);
}
return true;
mods/heroesbrawlmods/brawlmapmods/onelane/industrialdistrict.stormmod — base.stormdata/LibINDD.galaxy:51
lv_generator = UnitGroupUnitFromEnd(auto48D41B8F_g, auto48D41B8F_u);
if (lv_generator == null) { break; }
UnitBehaviorSetDuration(lv_generator, "GenerateRegenGlobe", libINDD_gv_regenGlobeCoolupTime_C);
libNtve_gf_SendActorMessageToUnit(lv_generator, "Signal RegenGlobeDurationRefreshed");
}
mods/heroesbrawlmods/brawlmapmods/onelane/onelanemapshared.stormmod — base.stormdata/LibOLMS.galaxy:73
auto37472270_var = UnitGroupUnitFromEnd(auto37472270_g, auto37472270_u);
if (auto37472270_var == null) { break; }
UnitBehaviorSetDuration(auto37472270_var, "GenerateRegenGlobe", libOLMS_gv_mMHO_RegenGlobeCoolupTime_C);
libNtve_gf_SendActorMessageToUnit(auto37472270_var, "Signal RegenGlobeDurationRefreshed");
libOLMS_gf_MMOneLaneDisplayRegenGlobeGeneratorTimer(auto37472270_var);
mods/heroesbrawlmods/brawlmapmods/onelane/onelanemapshared.stormmod — base.stormdata/LibOLMS.galaxy:131
auto324920CE_var = UnitGroupUnitFromEnd(auto324920CE_g, auto324920CE_u);
if (auto324920CE_var == null) { break; }
UnitBehaviorSetDuration(auto324920CE_var, "GenerateRegenGlobe", libOLMS_gv_mMHO_RegenGlobeCoolupTime_C);
libNtve_gf_SendActorMessageToUnit(auto324920CE_var, "Signal RegenGlobeDurationRefreshed");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7680
}
UnitBehaviorSetDuration(lv_target, "ButchersBrand", (lv_currentAmount + lv_increaseAmount));
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11517
if ((EventUnitBehaviorChange() == c_unitBehaviorChangeCreate)) {
UnitBehaviorAdd(lv_stunnedUnit, "L90ETCMoshPitDisplayBehavior", lv_stunnedUnit, 1);
UnitBehaviorSetDuration(lv_stunnedUnit, "L90ETCMoshPitDisplayBehavior", UnitBehaviorDurationTotal(lv_eTC, "L90ETCMoshPitChannel"));
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "L90ETCMoshPitDisplayBehavior", UnitBehaviorDuration(lv_eTC, "L90ETCMoshPitChannel"));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11525
}
UnitBehaviorSetDuration(lv_stunnedUnit, "L90ETCMoshPitDisplayBehavior", UnitBehaviorDurationTotal(lv_eTC, "L90ETCMoshPitChannel"));
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "L90ETCMoshPitDisplayBehavior", UnitBehaviorDuration(lv_eTC, "L90ETCMoshPitChannel"));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12263
UnitBehaviorAdd(lv_leoric, "LeoricUndying", lv_leoric, 1);
if ((TimerGetDuration(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer) > 0.0)) {
UnitBehaviorSetDuration(lv_leoric, "LeoricUndying", TimerGetRemaining(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer));
UnitBehaviorSetDuration(lv_leoric, "Dead", TimerGetRemaining(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer));
libGDHL_gv_hero_Leoric_Undying_Dead_Duration[lv_leoricPlayer] = UnitBehaviorDurationTotal(lv_leoric, "LeoricUndying");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12264
if ((TimerGetDuration(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer) > 0.0)) {
UnitBehaviorSetDuration(lv_leoric, "LeoricUndying", TimerGetRemaining(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer));
UnitBehaviorSetDuration(lv_leoric, "Dead", TimerGetRemaining(libGame_gv_players[lv_leoricPlayer].lv_respawnTimer));
libGDHL_gv_hero_Leoric_Undying_Dead_Duration[lv_leoricPlayer] = UnitBehaviorDurationTotal(lv_leoric, "LeoricUndying");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12268
}
else {
UnitBehaviorSetDuration(lv_leoric, "LeoricUndying", 0.0);
UnitBehaviorSetDuration(lv_leoric, "Dead", 0.0);
libGDHL_gv_hero_Leoric_Undying_Dead_Duration[lv_leoricPlayer] = UnitBehaviorDurationTotal(lv_leoric, "LeoricUndying");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12269
else {
UnitBehaviorSetDuration(lv_leoric, "LeoricUndying", 0.0);
UnitBehaviorSetDuration(lv_leoric, "Dead", 0.0);
libGDHL_gv_hero_Leoric_Undying_Dead_Duration[lv_leoricPlayer] = UnitBehaviorDurationTotal(lv_leoric, "LeoricUndying");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13306
UnitBehaviorAdd(lv_deadUnit, "DeadMechanics", lv_deadUnit, 1);
if ((TimerGetDuration(lv_vikingDeathTimer) > 0.0)) {
UnitBehaviorSetDuration(lv_deadUnit, "Dead", TimerGetRemaining(lv_vikingDeathTimer));
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:13309
}
else {
UnitBehaviorSetDuration(lv_deadUnit, "Dead", 0.0);
}
auto973DB6EB_g = libGame_gv_players[lv_lVPlayer].lv_heroUnitGroup;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24383
lv_ravenousSpiritBehavior = CatalogFieldValueGet(c_gameCatalogEffect, (EventPlayerEffectUsed()), "Behavior", lv_player);
lv_ravenousSpiritDuration = CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, lv_ravenousSpiritBehavior, "Duration", lv_player);
UnitBehaviorSetDuration(EventPlayerEffectUsedUnit(c_effectUnitCaster), "RavenousSoulsChannel", lv_ravenousSpiritDuration);
UnitBehaviorSetDurationRemaining(EventPlayerEffectUsedUnit(c_effectUnitCaster), "RavenousSoulsChannel", lv_ravenousSpiritDuration);
libGame_gv_players[lv_player].lv_cameraPlayerUnitGroupToFocusOn = libNtve_gf_ConvertUnitToUnitGroup(lv_ravenousSpiritUnit);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6741
if ((TimerGetDuration(libGame_gv_players[lp_player].lv_respawnTimer) > 0.0)) {
UnitBehaviorSetDuration(lv_heroUnit, "Dead", TimerGetRemaining(libGame_gv_players[lp_player].lv_respawnTimer));
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6744
}
else {
UnitBehaviorSetDuration(lv_heroUnit, "Dead", 0.0);
}
if ((UnitHasBehavior2(lv_heroUnit, "GuldanDarkBargainDuration") == true)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:6797
if ((lv_currentRespawnTimer < lp_newRespawnTimerDuration)) {
UnitBehaviorSetDuration(libGame_gv_players[lp_respawningPlayer].lv_heroUnit, "Dead", lp_newRespawnTimerDuration);
}
else {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3145
if ((UnitIsAlive(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex]) == true) && ((libGame_gf_TownGetTownStructurePresetFromUnit(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex]) == libGame_ge_TownStructureTypes_TownHall) || (libGame_gf_TownGetTownStructurePresetFromUnit(libGame_gv_townTownData[lv_townIndex].lv_structureUnits[lv_structureIndex]) == libGame_ge_TownStructureTypes_CannonTower))) {
UnitBehaviorAdd(lv_structureUnit, "RavenLordsCurseStructures", lv_structureUnit, 1);
UnitBehaviorSetDuration(lv_structureUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_structureUnit, "RavenLordsCurseStructuresWarning", lv_structureUnit, 1);
UnitBehaviorSetDuration(lv_structureUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:3147
UnitBehaviorSetDuration(lv_structureUnit, "RavenLordsCurseStructures", libMapM_gv_mMRavenCurseDuration_C);
UnitBehaviorAdd(lv_structureUnit, "RavenLordsCurseStructuresWarning", lv_structureUnit, 1);
UnitBehaviorSetDuration(lv_structureUnit, "RavenLordsCurseStructuresWarning", (libMapM_gv_mMRavenCurseDuration_C - 5.0));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:6219
libNtve_gf_CreateUnitsWithDefaultFacing(1, "RavenLordTribute", c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, lv_spawnPoint, null);
UnitBehaviorAdd(UnitLastCreated(), "MapMechanicCoolUp", UnitLastCreated(), 1);
UnitBehaviorSetDuration(UnitLastCreated(), "MapMechanicCoolUp", (libMapM_gv_mMRavenSpawnWarningTimerTime_C+.5));
UnitBehaviorSetDurationRemaining(UnitLastCreated(), "MapMechanicCoolUp", (libMapM_gv_mMRavenSpawnWarningTimerTime_C+.5));
AddUnitOfInterest(UnitLastCreated(), 500.0, 0.0, "Tribute", libNtve_ge_GoalTeam_Both, 0);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7476
libMapM_gv_mMGardensDragonDragonCaptures += 1;
UnitBehaviorAdd(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
UnitBehaviorSetDuration(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", lv_duration);
UnitBehaviorSetDurationRemaining(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", lv_duration);
auto91990493_var = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/MapMechanicsLib.galaxy:7840
}
UnitBehaviorSetDuration(libMapM_gv_mMGardensDragonStatue, "VehicleDragonTimedLife", -1.0);
return true;
}
mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod — base.stormdata/LibSCHO.galaxy:2570
auto126029DC_var = UnitGroupUnitFromEnd(auto126029DC_g, auto126029DC_u);
if (auto126029DC_var == null) { break; }
UnitBehaviorSetDuration(auto126029DC_var, "GenerateRegenGlobe", libSCHO_gv_mMHO_RegenGlobeCoolupTime_C);
libNtve_gf_SendActorMessageToUnit(auto126029DC_var, "Signal RegenGlobeDurationRefreshed");
}
mods/heroesmapmods/battlegroundmapmods/volskayadata.stormmod — base.stormdata/LibVolV.galaxy:175
libMapM_gf_AddVehicle(EventUnit());
lv_pilotIndex = libMapM_gf_GetVehicleIndexOfUnit(EventUnit());
UnitBehaviorSetDuration(libMapM_gv_vehicle[lv_pilotIndex].lv_unit_Vehicle, "VehicleDragonTimedLife", (libVolV_gv_vehicleStartingDuration+libVolV_gv_vehicleDurationIncrementAmount*TimerGetElapsed(libGame_gv_gameTimer)/60));
UnitBehaviorSetDurationRemaining(libMapM_gv_vehicle[lv_pilotIndex].lv_unit_Vehicle, "VehicleDragonTimedLife", (libVolV_gv_vehicleStartingDuration+libVolV_gv_vehicleDurationIncrementAmount*TimerGetElapsed(libGame_gv_gameTimer)/60));
CatalogFieldValueSet(c_gameCatalogAbil, "VolskayaVehicleActivateParticleCannon", "Range", libGame_gf_ComputerPlayerInTeam(lv_robotOwnerTeam), "20");
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1014
libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer] = UnitLastCreated();
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
}
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1029
libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][1].lv_vikingUnit = lv_deadHero;
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][1].lv_spiritUnit, "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][1].lv_spiritUnit, 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][1].lv_spiritUnit, "AurielResurrectRezzable", (TimerGetDuration(libGDHL_gv_lostVikingsPlayer[lv_deadPlayer].lv_baleogDeathTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
TriggerEnable(libHAUR_gt_HeroAurielResurrectLostVikingRespawns, true);
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1044
UnitSetHeight(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1.0, 0.0);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
}
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1057
UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
}
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1070
libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][2].lv_vikingUnit = lv_deadHero;
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][2].lv_spiritUnit, "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][2].lv_spiritUnit, 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectLostVikingsArray[lv_deadPlayer][2].lv_spiritUnit, "AurielResurrectRezzable", (TimerGetDuration(libGDHL_gv_lostVikingsPlayer[lv_deadPlayer].lv_erikDeathTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
TriggerEnable(libHAUR_gt_HeroAurielResurrectLostVikingRespawns, true);
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1086
UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
}
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1094
UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
Wait(CatalogFieldValueGetAsFixed(c_gameCatalogBehavior, "L90ETCDeathMetalTimedLife", "Duration", UnitGetOwner(lv_deadHero)), c_timeGame);
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1105
UnitSetHeight(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 2.0, 0.0);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
libHAUR_gf_HeroAurielResurrectRevealSpirittoAurielandDeadPlayer(lv_deadPlayer, lv_deadHero);
}
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1118
UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
TriggerEnable(libHAUR_gt_HeroAurielResurrectLeoricSpiritFollow, true);
lv_iPlayer = 1;
mods/heromods/auriel.stormmod — base.stormdata/LibHAUR.galaxy:1138
UnitSetPosition(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], lv_lastKnownPosition, false);
UnitBehaviorAdd(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], 1);
UnitBehaviorSetDuration(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer], "AurielResurrectRezzable", (TimerGetDuration(libGame_gv_players[lv_deadPlayer].lv_respawnTimer) - libHAUR_gv_heroAurielResurrectTargetUnresurrectableTime));
ActorSend(libNtve_gf_MainActorofUnit(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer]), libNtve_gf_ModelSwap(libCore_gf_GetModelLinkForUnitType(UnitGetType(lv_deadHero)), 0));
if ((UnitIsAlive(libGame_gv_heroDeathMurkyRespawnEggs[lv_deadPlayer]) == true)) {
mods/heromods/chogall.stormmod — base.stormdata/LibHCHO.galaxy:207
}
UnitBehaviorSetDuration(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_gallUnit, "GallRunicBlastOrbActive", lv_timeToImpact);
while (((UnitIsAlive(lp_OrbUnit) == true) && (UnitIsAlive(libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_gallUnit) == true) && (UnitHasBehavior2(lv_runeBomb, "ChoRuneBombDetonationImmunity") == false) && (UnitHasBehavior2(lv_runeBomb, "ChoRuneBombDetonated") == false))) {
lv_runeBombSpeed = CatalogReferenceGetAsInt("Mover,ChoRuneBombReturnMissile,MotionPhases[0].Speed", libGDHL_gv_chogallPairs[lv_choGallPairsTeamID].lv_choPlayer);
mods/heromods/guldan.stormmod — base.stormdata/LibHGUL.galaxy:386
libGame_gf_SendEventHeroKilled(lv_killingPlayer, lv_deadUnit);
UnitBehaviorAdd(lv_deadUnit, "GuldanDarkBargainDuration", lv_deadUnit, 1);
UnitBehaviorSetDuration(lv_deadUnit, "GuldanDarkBargainDuration", 15.0);
lv_respawnTime = libCore_gf_HeroDeathTime(lv_deadPlayer, UnitLevel(libGame_gv_players[lv_deadPlayer].lv_heroUnit));
lv_respawnTime = (lv_respawnTime + 15.0);
mods/heromods/guldan.stormmod — base.stormdata/LibHGUL.galaxy:448
lv_deadUnit = EventUnit();
lv_deadPlayer = EventPlayer();
UnitBehaviorSetDuration(lv_deadUnit, "Dead", UnitBehaviorDuration(lv_deadUnit, "Dead"));
libUIUI_gf_HeroConsoleUnitStatusBarsUpdateStunDeathBar("Dead", lv_deadPlayer);
return true;
mods/heromods/thefirelords.stormmod — base.stormdata/LibHMaj.galaxy:332
}
UnitBehaviorSetDuration(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent)))));
while ((UnitIsAlive(lv_bigRagnarosUnit) == true)) {
UnitBehaviorSetDurationRemaining(lv_bigRagnarosUnit, "RagnarosMoltenCoreDuration", ((UnitGetPropertyFixed(EventUnit(), c_unitPropLifeMax, c_unitPropCurrent) / AbsF(UnitGetPropertyFixed(EventUnit(), c_unitPropLifeRegen, c_unitPropCurrent))) * (UnitGetPropertyFixed(lv_bigRagnarosUnit, c_unitPropLifePercent, c_unitPropCurrent) / 100)));
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:501
UnitBehaviorAdd(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_stunnedUnit, 1);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_duration);
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:503
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeTargetDuration", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_duration);
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:505
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePull", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:507
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgePullInitial", lv_durationRemaining);
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_durationRemaining);
return true;
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:543
}
UnitBehaviorSetDuration(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_duration);
UnitBehaviorSetDurationRemaining(lv_stunnedUnit, "ZaryaGravitonSurgeGravityKillsTalentSilence", lv_durationRemaining);
return true;
mods/heromods/zuljin.stormmod — base.stormdata/LibHZUL.galaxy:711
}
UnitBehaviorSetDuration(lv_itUnit, "ZuljinLetTheKillingBeginStack", CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "ZuljinLetTheKillingBeginStack", "Duration", EventPlayer()));
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:28670
}
UnitBehaviorSetDuration(EventUnit(), EventUnitBehavior(), RandomInt(1, 10));
return true;
}