[Duvida] Undeclared Variable
4 participantes
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
[Duvida] Undeclared Variable
Duvida - Undeclared Variable |
- Qual a sua duvida:
Bom,estava fazendo minha magia feliz(eu disse que era um lixo),porem está dando o seguinte erro quando eu inicio o mapa:
Line 3230 : Undeclared Variable ugd_ETG_tempX
Line 3231 : Undeclared Variable udg_ETG_tempy - Com qual frequência você usa o World Editor: Regularmente
- Experiência com triggers: Experiente
- Experiência com Jass: Experiente
Status da duvida: Em Progresso
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
olha bem seu erro foi no "ugd" tem que ser udg
eu creio que esse error acontece quando nao escrevemos correto o nome das variaveis nas custom scripts
eu creio que esse error acontece quando nao escrevemos correto o nome das variaveis nas custom scripts
ArthusBehemoth- Número de Posts : 1061
Data de inscrição : 30/03/2011
Reputação : 62 Pontos : 27944
Re: [Duvida] Undeclared Variable
Está certo sim,eu já olhei isso,vou te mandar as triggres:
São as seguintes triggers:
1º- Trigger (ETG CONFIGURATION)
2º- Trigger ETG Activation
3º- Trigger ETG Loop
São as seguintes triggers:
1º- Trigger (ETG CONFIGURATION)
- Spoiler:
function Trig_ETG_Configuration_Actions takes nothing returns nothing
call InitHashtableBJ( )
set udg_ETG_Hash = GetLastCreatedHashtableBJ()
set udg_ETG_GasProjectileScale = 200.00
set udg_ETG_VolcanicProjectileScale = 100.00
set udg_ETG_SpreadRandomiser = 40.00
set udg_ETG_HeightMultiplyer = 0.45
set udg_ETG_GasCloudAOE = 100.00
set udg_ETG_VolcanicRockAoeBase = 50.00
set udg_ETG_VolcanicRockAoePerLevel = 50.00
set udg_ETG_PoisonDamageBase = 0.50
set udg_ETG_PoisonDamagePerLevel = 0.10
set udg_ETG_BurnDamageBase = 0.30
set udg_ETG_BurnDamagePerLevel = 0.20
set udg_ETG_ExplosionDamageBase = 50.00
set udg_ETG_ExplosionDamagePerLevel = 25.00
set udg_ETG_PoisonDurationBase = 50.00
set udg_ETG_PoisonDurationPerLevel = 20.00
set udg_ETG_GasCloudDurationBase = 8.00
set udg_ETG_GasCloudDurationPerLevel = 2.00
set udg_ETG_BurnDurationBase = 100.00
set udg_ETG_BurnDurationPerLevel = 40.00
set udg_ETG_MinRange = 100.00
set udg_ETG_GasHeadsBase = 2
set udg_ETG_GasHeadsPerLevel = 2
set udg_ETG_GasSpreadBase = 3.00
set udg_ETG_GasSpreadPerLevel = 2.00
set udg_ETG_GasSpeed = 20.00
set udg_ETG_GasSpreadSpeed = 2
set udg_ETG_GasProjectileFlyHeight = 100.00
set udg_ETG_Dummy = 'u000'
set udg_ETG_GasModel = "Abilities\\Spells\\Undead\\PlagueCloud\\PlagueCloudCaster.mdl"
set udg_ETG_GasProjectileModel = "Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl"
set udg_ETG_RockModel = "Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl"
set udg_ETG_DissapateModel = "Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl"
set udg_ETG_ExplosionModel = "Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl"
set udg_ETG_FireModel = "Environment\\LargeBuildingFire\\LargeBuildingFire2.mdl"
set udg_ETG_PoisonModel = "Abilities\\Spells\\Undead\\AntiMagicShell\\AntiMagicShell.mdl"
// Toxic Gas
set udg_ETG_Spell = 'A01H'
// Volcanic Rock
set udg_ETG_Spell2 = 'A01I'
// ------
// Ability to add burn buff
set udg_ETG_BuffAbilityBurn = 'A01F'
// Ability to add poison buff
set udg_ETG_BuffAbilityPoison = 'A01G'
endfunction
//===========================================================================
function InitTrig_ETG_Configuration takes nothing returns nothing
set gg_trg_ETG_Configuration = CreateTrigger( )
call TriggerAddAction( gg_trg_ETG_Configuration, function Trig_ETG_Configuration_Actions )
endfunction
2º- Trigger ETG Activation
- Spoiler:
function Trig_ETG_Activation_Func019C takes nothing returns boolean
if ( ( GetSpellAbilityId() == udg_ETG_Spell ) ) then
return true
endif
if ( ( GetSpellAbilityId() == udg_ETG_Spell2 ) ) then
return true
endif
return false
endfunction
function Trig_ETG_Activation_Conditions takes nothing returns boolean
if ( not Trig_ETG_Activation_Func019C() ) then
return false
endif
return true
endfunction
function Trig_ETG_Activation_Func008Func003C takes nothing returns boolean
if ( not ( udg_ETG_RealCache[0] < udg_ETG_MinRange ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Activation_Func008C takes nothing returns boolean
if ( not ( GetSpellAbilityId() == udg_ETG_Spell ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Activation_Actions takes nothing returns nothing
// Spell setup
set udg_ETG_U = GetTriggerUnit()
set udg_ETG_TempPoint = GetUnitLoc(GetTriggerUnit())
set udg_ETG_TempPoint2 = GetSpellTargetLoc()
set udg_ETG_TempReal = I2R(GetUnitAbilityLevelSwapped(udg_ETG_Spell, udg_ETG_U))
set udg_ETG_Angle = AngleBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2)
// --------
if ( Trig_ETG_Activation_Func008C() ) then
// Creating the Gas
call CreateNUnitsAtLoc( 1, udg_ETG_Dummy, GetOwningPlayer(udg_ETG_U), udg_ETG_TempPoint, udg_ETG_Angle )
// Unit setup
set udg_ETG_TempU = GetLastCreatedUnit()
set udg_ETG_UHandle = GetHandleId(udg_ETG_TempU)
call AddSpecialEffectTargetUnitBJ( "origin", udg_ETG_TempU, udg_ETG_GasProjectileModel )
call SetUnitScalePercent( udg_ETG_TempU, udg_ETG_GasProjectileScale, udg_ETG_GasProjectileScale, udg_ETG_GasProjectileScale )
call SetUnitFlyHeightBJ( udg_ETG_TempU, udg_ETG_GasProjectileFlyHeight, 0.00 )
// --------
// Original Casting Unit
call SaveUnitHandleBJ( udg_ETG_U, 1, udg_ETG_UHandle, udg_ETG_Hash )
// Stage ID
call SaveIntegerBJ( 1, 2, udg_ETG_UHandle, udg_ETG_Hash )
// Number of Gas Heads
call SaveIntegerBJ( ( udg_ETG_GasHeadsBase + ( R2I(udg_ETG_TempReal) * udg_ETG_GasHeadsPerLevel ) ), 3, udg_ETG_UHandle, udg_ETG_Hash )
// Duration of each Gas cloud
call SaveRealBJ( ( udg_ETG_GasCloudDurationBase + ( udg_ETG_TempReal * udg_ETG_GasCloudDurationPerLevel ) ), 4, udg_ETG_UHandle, udg_ETG_Hash )
// Poison Damage
call SaveRealBJ( ( udg_ETG_PoisonDamageBase + ( udg_ETG_TempReal * udg_ETG_PoisonDamagePerLevel ) ), 5, udg_ETG_UHandle, udg_ETG_Hash )
// Poison Duration
call SaveRealBJ( ( udg_ETG_PoisonDurationBase + ( udg_ETG_TempReal * udg_ETG_PoisonDurationPerLevel ) ), 6, udg_ETG_UHandle, udg_ETG_Hash )
// Amount of spreading Gas
call SaveRealBJ( ( udg_ETG_GasSpreadBase + ( udg_ETG_TempReal * udg_ETG_GasSpreadPerLevel ) ), 10, udg_ETG_UHandle, udg_ETG_Hash )
// Distance To Travel
call SaveRealBJ( DistanceBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2), 11, udg_ETG_UHandle, udg_ETG_Hash )
// Distance Initalisation
call SaveRealBJ( 0.00, 12, udg_ETG_UHandle, udg_ETG_Hash )
// Cloud effect
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 13, udg_ETG_UHandle, udg_ETG_Hash )
// Added to unit group
call GroupAddUnitSimple( udg_ETG_TempU, udg_ETG_Group )
else
// Minimum Range check
set udg_ETG_RealCache[0] = DistanceBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2)
if ( Trig_ETG_Activation_Func008Func003C() ) then
call RemoveLocation(udg_ETG_TempPoint2)
set udg_ETG_Angle = GetUnitFacing(udg_ETG_U)
set udg_ETG_TempPoint2 = PolarProjectionBJ(udg_ETG_TempPoint, udg_ETG_MinRange, udg_ETG_Angle)
set udg_ETG_RealCache[0] = DistanceBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2)
else
endif
// Creating the Rock
call CreateNUnitsAtLoc( 1, udg_ETG_Dummy, GetOwningPlayer(udg_ETG_U), udg_ETG_TempPoint, udg_ETG_Angle )
// Unit setup
set udg_ETG_TempU = GetLastCreatedUnit()
set udg_ETG_UHandle = GetHandleId(udg_ETG_TempU)
call AddSpecialEffectTargetUnitBJ( "overhead", udg_ETG_TempU, udg_ETG_RockModel )
call SetUnitScalePercent( udg_ETG_TempU, udg_ETG_VolcanicProjectileScale, udg_ETG_VolcanicProjectileScale, udg_ETG_VolcanicProjectileScale )
// --------
// Original Casting Unit
call SaveUnitHandleBJ( udg_ETG_U, 1, udg_ETG_UHandle, udg_ETG_Hash )
// Stage ID
call SaveIntegerBJ( 4, 2, udg_ETG_UHandle, udg_ETG_Hash )
// Explosion Aoe
call SaveRealBJ( ( udg_ETG_VolcanicRockAoeBase + ( udg_ETG_TempReal * udg_ETG_VolcanicRockAoePerLevel ) ), 6, udg_ETG_UHandle, udg_ETG_Hash )
// Distance To Travel
call SaveRealBJ( udg_ETG_RealCache[0], 11, udg_ETG_UHandle, udg_ETG_Hash )
// Distance Initalisation
call SaveRealBJ( 0.00, 12, udg_ETG_UHandle, udg_ETG_Hash )
call SaveRealBJ( ( udg_ETG_RealCache[0] * udg_ETG_HeightMultiplyer ), 13, udg_ETG_UHandle, udg_ETG_Hash )
// Rock effect
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 14, udg_ETG_UHandle, udg_ETG_Hash )
// Added to unit group
call GroupAddUnitSimple( udg_ETG_TempU, udg_ETG_Group )
endif
// Explosion Damage
call SaveRealBJ( ( udg_ETG_ExplosionDamageBase + ( udg_ETG_TempReal * udg_ETG_ExplosionDamagePerLevel ) ), 9, udg_ETG_UHandle, udg_ETG_Hash )
// Burn Damage
call SaveRealBJ( ( udg_ETG_BurnDamageBase + ( udg_ETG_TempReal * udg_ETG_BurnDamagePerLevel ) ), 7, udg_ETG_UHandle, udg_ETG_Hash )
// Burn Duration
call SaveRealBJ( ( udg_ETG_BurnDurationBase + ( udg_ETG_TempReal * udg_ETG_BurnDurationPerLevel ) ), 8, udg_ETG_UHandle, udg_ETG_Hash )
// Clearing Leaks
call RemoveLocation(udg_ETG_TempPoint2)
call RemoveLocation(udg_ETG_TempPoint)
call EnableTrigger( gg_trg_ETG_Loop )
endfunction
//===========================================================================
function InitTrig_ETG_Activation takes nothing returns nothing
set gg_trg_ETG_Activation = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_ETG_Activation, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_ETG_Activation, Condition( function Trig_ETG_Activation_Conditions ) )
call TriggerAddAction( gg_trg_ETG_Activation, function Trig_ETG_Activation_Actions )
endfunction
3º- Trigger ETG Loop
- Spoiler:
function Trig_ETG_Loop_Func001Func006Func002Func001Func003C takes nothing returns boolean
if ( not ( udg_ETG_TempInteger == udg_ETG_GasSpreadSpeed ) ) then
return false
endif
if ( not ( LoadIntegerBJ(14, udg_ETG_UHandle, udg_ETG_Hash) == 1 ) ) then
return false
endif
if ( not ( LoadRealBJ(10, udg_ETG_UHandle, udg_ETG_Hash) > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func011Func004C takes nothing returns boolean
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_MAGIC_IMMUNE) == false ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_ETG_TempU) == true ) ) then
return false
endif
if ( not ( IsUnitEnemy(udg_ETG_TempU, GetOwningPlayer(udg_ETG_U)) == true ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_GROUND) == true ) ) then
return false
endif
if ( not ( LoadRealBJ(6, udg_ETG_UHandleC, udg_ETG_Hash) <= 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func011A takes nothing returns nothing
// Finding Targets
set udg_ETG_TempU = GetEnumUnit()
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU)
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func011Func004C() ) then
// Poison
call DestroyEffectBJ( LoadEffectHandleBJ(9, udg_ETG_UHandleC, udg_ETG_Hash) )
call SaveUnitHandleBJ( udg_ETG_TempU2, 1, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[0], 5, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[1], 6, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveIntegerBJ( 3, 2, udg_ETG_UHandleC, udg_ETG_Hash )
call AddSpecialEffectTargetUnitBJ( "chest", udg_ETG_TempU, udg_ETG_PoisonModel )
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 9, udg_ETG_UHandleC, udg_ETG_Hash )
call UnitAddAbilityBJ( udg_ETG_BuffAbilityPoison, udg_ETG_TempU )
call GroupAddUnitSimple( udg_ETG_TempU, udg_ETG_Group )
else
endif
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013Func004Func002C takes nothing returns boolean
if ( not ( LoadRealBJ(8, udg_ETG_UHandleC, udg_ETG_Hash) <= 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013Func004C takes nothing returns boolean
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_MAGIC_IMMUNE) == false ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_ETG_TempU) == true ) ) then
return false
endif
if ( not ( IsUnitEnemy(udg_ETG_TempU, GetOwningPlayer(udg_ETG_U)) == true ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_GROUND) == true ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013A takes nothing returns nothing
// Finding Targets
set udg_ETG_TempU = GetEnumUnit()
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU)
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013Func004C() ) then
// Burn
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013Func004Func002C() ) then
call DestroyEffectBJ( LoadEffectHandleBJ(10, udg_ETG_UHandleC, udg_ETG_Hash) )
call SaveUnitHandleBJ( udg_ETG_TempU2, 1, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[0], 7, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[1], 8, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveIntegerBJ( 3, 2, udg_ETG_UHandleC, udg_ETG_Hash )
call AddSpecialEffectTargetUnitBJ( "chest", udg_ETG_TempU, udg_ETG_FireModel )
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 10, udg_ETG_UHandleC, udg_ETG_Hash )
call UnitAddAbilityBJ( udg_ETG_BuffAbilityBurn, udg_ETG_TempU )
call GroupAddUnitSimple( udg_ETG_TempU, udg_ETG_Group )
else
endif
// Explosion Damage
call UnitDamageTargetBJ( udg_ETG_TempU2, udg_ETG_TempU, LoadRealBJ(9, udg_ETG_UHandle, udg_ETG_Hash), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
else
endif
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func014Func004C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2) <= udg_ETG_RealCache[5] ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func014A takes nothing returns nothing
set udg_ETG_TempU = GetEnumUnit()
set udg_ETG_TempPoint2 = GetUnitLoc(udg_ETG_TempU)
// Check Chain Ignition
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func016Func014Func004C() ) then
// Ignition setup
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU)
call UnitApplyTimedLifeBJ( 0.10, 'BTLF', udg_ETG_TempU )
call SaveBooleanBJ( true, 11, udg_ETG_UHandleC, udg_ETG_Hash )
else
endif
call RemoveLocation (udg_ETG_TempPoint2)
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func016C takes nothing returns boolean
if ( not ( LoadBooleanBJ(11, udg_ETG_UHandle, udg_ETG_Hash) == true ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001Func025C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_ETG_Group) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func001C takes nothing returns boolean
if ( not ( IsUnitDeadBJ(udg_ETG_U) == true ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func008C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_ETG_Group) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func007C takes nothing returns boolean
if ( ( udg_ETG_RealCache[1] > 0.00 ) ) then
return true
endif
if ( ( udg_ETG_RealCache[3] > 0.00 ) ) then
return true
endif
return false
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func011C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_ETG_Group) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func012C takes nothing returns boolean
if ( not ( udg_ETG_RealCache[1] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func014C takes nothing returns boolean
if ( not ( udg_ETG_RealCache[3] > 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012C takes nothing returns boolean
if ( not Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func007C() ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func001C takes nothing returns boolean
if ( not ( IsUnitDeadBJ(udg_ETG_U) == true ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func012Func004C takes nothing returns boolean
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_MAGIC_IMMUNE) == false ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_STRUCTURE) == false ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_ETG_TempU) == true ) ) then
return false
endif
if ( not ( IsUnitEnemy(udg_ETG_TempU, GetOwningPlayer(udg_ETG_U)) == true ) ) then
return false
endif
if ( not ( IsUnitType(udg_ETG_TempU, UNIT_TYPE_GROUND) == true ) ) then
return false
endif
if ( not ( LoadRealBJ(8, udg_ETG_UHandleC, udg_ETG_Hash) <= 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func012A takes nothing returns nothing
// Finding Targets
set udg_ETG_TempU = GetEnumUnit()
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU)
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func012Func004C() ) then
// Burn setup
call DestroyEffectBJ( LoadEffectHandleBJ(10, udg_ETG_UHandleC, udg_ETG_Hash) )
call SaveUnitHandleBJ( udg_ETG_TempU2, 1, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[0], 7, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveRealBJ( udg_ETG_RealCache[1], 8, udg_ETG_UHandleC, udg_ETG_Hash )
call SaveIntegerBJ( 3, 2, udg_ETG_UHandleC, udg_ETG_Hash )
// Damage
call UnitDamageTargetBJ( udg_ETG_TempU2, udg_ETG_TempU, LoadRealBJ(9, udg_ETG_UHandle, udg_ETG_Hash), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
// Burn
call AddSpecialEffectTargetUnitBJ( "chest", udg_ETG_TempU, udg_ETG_FireModel )
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 10, udg_ETG_UHandleC, udg_ETG_Hash )
call UnitAddAbilityBJ( udg_ETG_BuffAbilityBurn, udg_ETG_TempU )
call GroupAddUnitSimple( udg_ETG_TempU, udg_ETG_Group )
else
endif
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func014Func003C takes nothing returns boolean
if ( not ( DistanceBetweenPoints(udg_ETG_TempPoint, udg_ETG_TempPoint2) <= udg_ETG_RealCache[5] ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func014A takes nothing returns nothing
set udg_ETG_TempU = GetEnumUnit()
set udg_ETG_TempPoint2 = GetUnitLoc(udg_ETG_TempU)
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func014Func003C() ) then
// Get Ignition Setup
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU)
call UnitApplyTimedLifeBJ( 0.10, 'BTLF', udg_ETG_TempU )
call SaveBooleanBJ( true, 11, udg_ETG_UHandleC, udg_ETG_Hash )
else
endif
call RemoveLocation (udg_ETG_TempPoint2)
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func023C takes nothing returns boolean
if ( not ( CountUnitsInGroup(udg_ETG_Group) == 0 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016C takes nothing returns boolean
if ( not ( udg_ETG_RealCache[4] < 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002Func002C takes nothing returns boolean
if ( not ( udg_ETG_TempInteger == 4 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002Func002C takes nothing returns boolean
if ( not ( udg_ETG_TempInteger == 3 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func002C takes nothing returns boolean
if ( not ( udg_ETG_TempInteger == 2 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006Func010C takes nothing returns boolean
if ( not ( udg_ETG_TempReal >= LoadRealBJ(11, udg_ETG_UHandle, udg_ETG_Hash) ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001Func006C takes nothing returns boolean
if ( not ( udg_ETG_TempInteger == 1 ) ) then
return false
endif
return true
endfunction
function Trig_ETG_Loop_Func001A takes nothing returns nothing
// Unit Setup
set udg_ETG_U = GetEnumUnit()
set udg_ETG_UHandle = GetHandleId(udg_ETG_U)
set udg_ETG_TempInteger = LoadIntegerBJ(2, udg_ETG_UHandle, udg_ETG_Hash)
// Stage 1 (of 4)
if ( Trig_ETG_Loop_Func001Func006C() ) then
// Movement
set udg_ETG_TempX = GetUnitX(udg_ETG_U)
set udg_ETG_TempY = GetUnitY(udg_ETG_U)
set udg_ETG_Angle = (GetUnitFacing(udg_ETG_U) * bj_DEGTORAD)
call SetUnitX(udg_ETG_U, udg_ETG_TempX + udg_ETG_GasSpeed * Cos(udg_ETG_Angle))
call SetUnitY(udg_ETG_U, udg_ETG_TempY + udg_ETG_GasSpeed * Sin(udg_ETG_Angle))
set udg_ETG_TempReal = ( LoadRealBJ(12, udg_ETG_UHandle, udg_ETG_Hash) + udg_ETG_GasSpeed )
// Arrival
if ( Trig_ETG_Loop_Func001Func006Func010C() ) then
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
set udg_ETG_Angle = 0.00
// Creating Gas
set udg_ETG_TempU = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
// Amount of gas heads
set udg_ETG_RealCache[0] = I2R(LoadIntegerBJ(3, udg_ETG_UHandle, udg_ETG_Hash))
// Duration of each Gas cloud
set udg_ETG_RealCache[1] = LoadRealBJ(4, udg_ETG_UHandle, udg_ETG_Hash)
// Poison Damage
set udg_ETG_RealCache[2] = LoadRealBJ(5, udg_ETG_UHandle, udg_ETG_Hash)
// Poison Duration
set udg_ETG_RealCache[3] = LoadRealBJ(6, udg_ETG_UHandle, udg_ETG_Hash)
// Burn Damage
set udg_ETG_RealCache[4] = LoadRealBJ(7, udg_ETG_UHandle, udg_ETG_Hash)
// Burn Duration
set udg_ETG_RealCache[5] = LoadRealBJ(8, udg_ETG_UHandle, udg_ETG_Hash)
// Explosion Damage
set udg_ETG_RealCache[6] = LoadRealBJ(9, udg_ETG_UHandle, udg_ETG_Hash)
// Amount of spreading Gas
set udg_ETG_RealCache[7] = LoadRealBJ(10, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_i = 1
loop
exitwhen udg_ETG_i > LoadIntegerBJ(3, udg_ETG_UHandle, udg_ETG_Hash)
// Gas data Setup
set udg_ETG_Angle = ( udg_ETG_Angle + ( 360.00 / udg_ETG_RealCache[0] ) )
set udg_ETG_TempPoint2 = PolarProjectionBJ(udg_ETG_TempPoint, udg_ETG_GasCloudAOE, udg_ETG_Angle)
// Creating Gas
call CreateNUnitsAtLoc( 1, udg_ETG_Dummy, GetOwningPlayer(udg_ETG_U), udg_ETG_TempPoint2, udg_ETG_Angle )
set udg_ETG_TempU2 = GetLastCreatedUnit()
call RemoveLocation(udg_ETG_TempPoint2)
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU2)
call AddSpecialEffectTargetUnitBJ( "chest", udg_ETG_TempU2, udg_ETG_GasModel )
// Original Casting Unit
call SaveUnitHandleBJ( udg_ETG_TempU, 1, udg_ETG_UHandleC, udg_ETG_Hash )
// Stage ID
call SaveIntegerBJ( 2, 2, udg_ETG_UHandleC, udg_ETG_Hash )
// Duration of each Gas cloud
call SaveRealBJ( udg_ETG_RealCache[1], 4, udg_ETG_UHandleC, udg_ETG_Hash )
// Poison Damage
call SaveRealBJ( udg_ETG_RealCache[2], 5, udg_ETG_UHandleC, udg_ETG_Hash )
// Poison Duration
call SaveRealBJ( udg_ETG_RealCache[3], 6, udg_ETG_UHandleC, udg_ETG_Hash )
// Burn Damage
call SaveRealBJ( udg_ETG_RealCache[4], 7, udg_ETG_UHandleC, udg_ETG_Hash )
// Burn Duration
call SaveRealBJ( udg_ETG_RealCache[5], 8, udg_ETG_UHandleC, udg_ETG_Hash )
// Explosion Damage
call SaveRealBJ( udg_ETG_RealCache[6], 9, udg_ETG_UHandleC, udg_ETG_Hash )
// Amount of spreading Gas
call SaveRealBJ( udg_ETG_RealCache[7], 10, udg_ETG_UHandleC, udg_ETG_Hash )
// Ignition setup
call SaveBooleanBJ( false, 11, udg_ETG_UHandleC, udg_ETG_Hash )
// Effect
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 12, udg_ETG_UHandleC, udg_ETG_Hash )
// Spread delay
call SaveIntegerBJ( 0, 13, udg_ETG_UHandleC, udg_ETG_Hash )
// Amount of spreads
call SaveIntegerBJ( 1, 14, udg_ETG_UHandleC, udg_ETG_Hash )
// Gas setup
call UnitApplyTimedLifeBJ( udg_ETG_RealCache[1], 'BTLF', udg_ETG_TempU2 )
call GroupAddUnitSimple( udg_ETG_TempU2, udg_ETG_Group )
call GroupAddUnitSimple( udg_ETG_TempU2, udg_ETG_Explodeables )
set udg_ETG_i = udg_ETG_i + 1
endloop
call RemoveLocation(udg_ETG_TempPoint)
call DestroyEffectBJ( LoadEffectHandleBJ(13, udg_ETG_UHandle, udg_ETG_Hash) )
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Group )
call KillUnit( udg_ETG_U )
call FlushChildHashtableBJ( udg_ETG_UHandle, udg_ETG_Hash )
else
call SaveRealBJ( udg_ETG_TempReal, 12, udg_ETG_UHandle, udg_ETG_Hash )
endif
else
if ( Trig_ETG_Loop_Func001Func006Func002C() ) then
if ( Trig_ETG_Loop_Func001Func006Func002Func001C() ) then
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
// Ignition Check
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func016C() ) then
// Explode effects
call AddSpecialEffectLocBJ( udg_ETG_TempPoint, udg_ETG_ExplosionModel )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// Explosion/Burn setup
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
set udg_ETG_RealCache[5] = ( udg_ETG_GasCloudAOE + 50.00 )
set udg_ETG_TempGroup = GetUnitsInRangeOfLocAll(udg_ETG_RealCache[5], udg_ETG_TempPoint)
set udg_ETG_TempU2 = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[0] = LoadRealBJ(7, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[1] = LoadRealBJ(8, udg_ETG_UHandle, udg_ETG_Hash)
// Explosion/Burn
call ForGroupBJ( udg_ETG_TempGroup, function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func013A )
call ForGroupBJ( udg_ETG_Explodeables, function Trig_ETG_Loop_Func001Func006Func002Func001Func016Func014A )
call DestroyGroup (udg_ETG_TempGroup)
call RemoveLocation (udg_ETG_TempPoint)
else
// Dissapation SFX
call AddSpecialEffectLocBJ( udg_ETG_TempPoint, udg_ETG_DissapateModel )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
endif
call RemoveLocation (udg_ETG_TempPoint)
// Unit Cleaup
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Group )
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Explodeables )
call DestroyEffectBJ( LoadEffectHandleBJ(13, udg_ETG_UHandle, udg_ETG_Hash) )
call FlushChildHashtableBJ( udg_ETG_UHandle, udg_ETG_Hash )
call RemoveUnit( udg_ETG_U )
// Check unit group is empty
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func025C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
else
// Spread Delay
set udg_ETG_TempInteger = LoadIntegerBJ(13, udg_ETG_UHandle, udg_ETG_Hash)
if ( Trig_ETG_Loop_Func001Func006Func002Func001Func003C() ) then
// Spread Reconfiguration
call SaveIntegerBJ( 0, 13, udg_ETG_UHandle, udg_ETG_Hash )
call SaveIntegerBJ( 0, 14, udg_ETG_UHandle, udg_ETG_Hash )
// Spread Setup
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
set udg_ETG_TempReal = GetUnitFacing(udg_ETG_U)
set udg_ETG_TempPoint2 = PolarProjectionBJ(udg_ETG_TempPoint, udg_ETG_GasCloudAOE, udg_ETG_TempReal)
set udg_ETG_Angle = GetRandomReal(( udg_ETG_TempReal - udg_ETG_SpreadRandomiser ), ( udg_ETG_TempReal + udg_ETG_SpreadRandomiser ))
set udg_ETG_TempU = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
// Duration of each Gas cloud
set udg_ETG_RealCache[1] = LoadRealBJ(4, udg_ETG_UHandle, udg_ETG_Hash)
// Poison Damage
set udg_ETG_RealCache[2] = LoadRealBJ(5, udg_ETG_UHandle, udg_ETG_Hash)
// Poison Duration
set udg_ETG_RealCache[3] = LoadRealBJ(6, udg_ETG_UHandle, udg_ETG_Hash)
// Burn Damage
set udg_ETG_RealCache[4] = LoadRealBJ(7, udg_ETG_UHandle, udg_ETG_Hash)
// Burn Duration
set udg_ETG_RealCache[5] = LoadRealBJ(8, udg_ETG_UHandle, udg_ETG_Hash)
// Explosion Damage
set udg_ETG_RealCache[6] = LoadRealBJ(9, udg_ETG_UHandle, udg_ETG_Hash)
// Amount of spreading Gas
set udg_ETG_RealCache[7] = ( LoadRealBJ(10, udg_ETG_UHandle, udg_ETG_Hash) - 1 )
// Create Gas
call CreateNUnitsAtLoc( 1, udg_ETG_Dummy, GetOwningPlayer(udg_ETG_U), udg_ETG_TempPoint2, udg_ETG_Angle )
set udg_ETG_TempU2 = GetLastCreatedUnit()
call RemoveLocation(udg_ETG_TempPoint2)
call RemoveLocation(udg_ETG_TempPoint)
set udg_ETG_UHandleC = GetHandleId(udg_ETG_TempU2)
call AddSpecialEffectTargetUnitBJ( "origin", udg_ETG_TempU2, udg_ETG_GasModel )
// Original Casting Unit
call SaveUnitHandleBJ( udg_ETG_TempU, 1, udg_ETG_UHandleC, udg_ETG_Hash )
// Stage ID
call SaveIntegerBJ( 2, 2, udg_ETG_UHandleC, udg_ETG_Hash )
// Duration of each Gas cloud
call SaveRealBJ( udg_ETG_RealCache[1], 4, udg_ETG_UHandleC, udg_ETG_Hash )
// Poison Damage
call SaveRealBJ( udg_ETG_RealCache[2], 5, udg_ETG_UHandleC, udg_ETG_Hash )
// Poison Duration
call SaveRealBJ( udg_ETG_RealCache[3], 6, udg_ETG_UHandleC, udg_ETG_Hash )
// Burn Damage
call SaveRealBJ( udg_ETG_RealCache[4], 7, udg_ETG_UHandleC, udg_ETG_Hash )
// Burn Duration
call SaveRealBJ( udg_ETG_RealCache[5], 8, udg_ETG_UHandleC, udg_ETG_Hash )
// Explosion Damage
call SaveRealBJ( udg_ETG_RealCache[6], 9, udg_ETG_UHandleC, udg_ETG_Hash )
// Amount of spreading Gas
call SaveRealBJ( udg_ETG_RealCache[7], 10, udg_ETG_UHandleC, udg_ETG_Hash )
// Ignition setup
call SaveBooleanBJ( false, 11, udg_ETG_UHandleC, udg_ETG_Hash )
// Effect
call SaveEffectHandleBJ( GetLastCreatedEffectBJ(), 12, udg_ETG_UHandleC, udg_ETG_Hash )
// Spread delay
call SaveIntegerBJ( 0, 13, udg_ETG_UHandleC, udg_ETG_Hash )
// Amount of spreads
call SaveIntegerBJ( 1, 14, udg_ETG_UHandleC, udg_ETG_Hash )
// Gas setup
call UnitApplyTimedLifeBJ( udg_ETG_RealCache[1], 'BTLF', udg_ETG_TempU2 )
call GroupAddUnitSimple( udg_ETG_TempU2, udg_ETG_Group )
call GroupAddUnitSimple( udg_ETG_TempU2, udg_ETG_Explodeables )
else
call SaveIntegerBJ( ( udg_ETG_TempInteger + 1 ), 13, udg_ETG_UHandle, udg_ETG_Hash )
endif
// Poisoned Units setup
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
set udg_ETG_TempGroup = GetUnitsInRangeOfLocAll(udg_ETG_GasCloudAOE, udg_ETG_TempPoint)
set udg_ETG_TempU2 = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[0] = LoadRealBJ(5, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[1] = LoadRealBJ(6, udg_ETG_UHandle, udg_ETG_Hash)
// Poison
call ForGroupBJ( udg_ETG_TempGroup, function Trig_ETG_Loop_Func001Func006Func002Func001Func011A )
call DestroyGroup (udg_ETG_TempGroup)
call RemoveLocation (udg_ETG_TempPoint)
endif
else
if ( Trig_ETG_Loop_Func001Func006Func002Func002C() ) then
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001C() ) then
// Unit cleanup
call DestroyEffectBJ( LoadEffectHandleBJ(9, udg_ETG_UHandle, udg_ETG_Hash) )
call DestroyEffectBJ( LoadEffectHandleBJ(10, udg_ETG_UHandle, udg_ETG_Hash) )
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Group )
call FlushChildHashtableBJ( udg_ETG_UHandle, udg_ETG_Hash )
// Check if the unit group is empty
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001Func008C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
else
// Burn/Poison Check
set udg_ETG_TempU2 = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[1] = LoadRealBJ(6, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[3] = LoadRealBJ(8, udg_ETG_UHandle, udg_ETG_Hash)
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012C() ) then
// Poison
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func012C() ) then
set udg_ETG_RealCache[0] = LoadRealBJ(5, udg_ETG_UHandle, udg_ETG_Hash)
call UnitDamageTargetBJ( udg_ETG_TempU2, udg_ETG_U, udg_ETG_RealCache[0], ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call SaveRealBJ( ( udg_ETG_RealCache[1] - 1 ), 6, udg_ETG_UHandle, udg_ETG_Hash )
else
endif
// Burn
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func014C() ) then
set udg_ETG_RealCache[2] = LoadRealBJ(7, udg_ETG_UHandle, udg_ETG_Hash)
call UnitDamageTargetBJ( udg_ETG_TempU2, udg_ETG_U, udg_ETG_RealCache[2], ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call SaveRealBJ( ( udg_ETG_RealCache[3] - 1 ), 8, udg_ETG_UHandle, udg_ETG_Hash )
else
endif
else
// Unit Cleanup
call DestroyEffectBJ( LoadEffectHandleBJ(9, udg_ETG_UHandle, udg_ETG_Hash) )
call DestroyEffectBJ( LoadEffectHandleBJ(10, udg_ETG_UHandle, udg_ETG_Hash) )
call UnitRemoveAbilityBJ( udg_ETG_BuffAbilityPoison, udg_ETG_U )
call UnitRemoveAbilityBJ( udg_ETG_BuffAbilityBurn, udg_ETG_U )
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Group )
call FlushChildHashtableBJ( udg_ETG_UHandle, udg_ETG_Hash )
// Check unit group is empty
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func001Func012Func011C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
endif
endif
else
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func002C() ) then
// Movement
set udg_ETG_TempX = GetUnitX(udg_ETG_U)
set udg_ETG_TempY = GetUnitY(udg_ETG_U)
set udg_ETG_Angle = (GetUnitFacing(udg_ETG_U) * bj_DEGTORAD)
call SetUnitX(udg_ETG_U, udg_ETG_TempX + udg_ETG_GasSpeed * Cos(udg_ETG_Angle))
call SetUnitY(udg_ETG_U, udg_ETG_TempY + udg_ETG_GasSpeed * Sin(udg_ETG_Angle))
// ------
// Fly Height
set udg_ETG_RealCache[1] = LoadRealBJ(11, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[2] = LoadRealBJ(13, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[3] = ( LoadRealBJ(12, udg_ETG_UHandle, udg_ETG_Hash) + udg_ETG_GasSpeed )
call SaveRealBJ( udg_ETG_RealCache[3], 12, udg_ETG_UHandle, udg_ETG_Hash )
set udg_ETG_RealCache[4] = ( ( ( 4.00 * udg_ETG_RealCache[2] ) / udg_ETG_RealCache[1] ) * ( ( udg_ETG_RealCache[3] / udg_ETG_RealCache[1] ) * ( udg_ETG_RealCache[1] - udg_ETG_RealCache[3] ) ) )
call SetUnitFlyHeightBJ( udg_ETG_U, udg_ETG_RealCache[4], 0.00 )
// ------
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016C() ) then
// Landing
set udg_ETG_TempPoint = GetUnitLoc(udg_ETG_U)
call AddSpecialEffectLocBJ( udg_ETG_TempPoint, udg_ETG_ExplosionModel )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
// Explosion Setup
set udg_ETG_RealCache[5] = LoadRealBJ(6, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_TempGroup = GetUnitsInRangeOfLocAll(udg_ETG_RealCache[5], udg_ETG_TempPoint)
set udg_ETG_TempU2 = LoadUnitHandleBJ(1, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[0] = LoadRealBJ(7, udg_ETG_UHandle, udg_ETG_Hash)
set udg_ETG_RealCache[1] = LoadRealBJ(8, udg_ETG_UHandle, udg_ETG_Hash)
// Targets
call ForGroupBJ( udg_ETG_TempGroup, function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func012A )
// Ignited Gas
call ForGroupBJ( udg_ETG_Explodeables, function Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func014A )
// Unit Cleanup
call DestroyGroup (udg_ETG_TempGroup)
call RemoveLocation (udg_ETG_TempPoint)
call DestroyEffectBJ( LoadEffectHandleBJ(14, udg_ETG_UHandle, udg_ETG_Hash) )
call KillUnit( udg_ETG_U )
call GroupRemoveUnitSimple( udg_ETG_U, udg_ETG_Group )
call FlushChildHashtableBJ( udg_ETG_UHandle, udg_ETG_Hash )
// Checks if group is empty
if ( Trig_ETG_Loop_Func001Func006Func002Func002Func002Func016Func023C() ) then
call DisableTrigger( GetTriggeringTrigger() )
else
endif
else
endif
else
endif
endif
endif
endif
endfunction
function Trig_ETG_Loop_Actions takes nothing returns nothing
call ForGroupBJ( udg_ETG_Group, function Trig_ETG_Loop_Func001A )
endfunction
//===========================================================================
function InitTrig_ETG_Loop takes nothing returns nothing
set gg_trg_ETG_Loop = CreateTrigger( )
call DisableTrigger( gg_trg_ETG_Loop )
call TriggerRegisterTimerEventPeriodic( gg_trg_ETG_Loop, 0.03 )
call TriggerAddAction( gg_trg_ETG_Loop, function Trig_ETG_Loop_Actions )
endfunction
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
Mals acho que não vai dar pra te ajudar... eu não entendo nada de Jass [Tens de ter uma conta e sessão iniciada para poderes visualizar esta imagem] mais tenta da uma conferida no nome das variaveis as vezes é alguma que voce possa ter escrito errado
ArthusBehemoth- Número de Posts : 1061
Data de inscrição : 30/03/2011
Reputação : 62 Pontos : 27944
Re: [Duvida] Undeclared Variable
Ok,deixa o bills chegar XD
OBS: o erro está na terceira trigger..
OU O IKY RESSUSCITAR DOS MORTOS E APARECER POR AQUI
essa aqui está em trigger normal,funcionando perfeitamente tbm,só que quando passo pro meu mapa buga
Download
OBS: o erro está na terceira trigger..
OU O IKY RESSUSCITAR DOS MORTOS E APARECER POR AQUI
essa aqui está em trigger normal,funcionando perfeitamente tbm,só que quando passo pro meu mapa buga
Download
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
Antes de copiar a trigger, você viu se seu mapa está com "automatically create unknowns variables..." em preferences, ativado?
@Edit
Nunca aconselho pegar uma trigger em GUI e converter para jass, o GUI cria muita coisa desnecessária. Torna o código horrivel para leitura e manutenção. Eu mesmo nem tenho paciencia para ler esses códigos ai.
@Edit
Nunca aconselho pegar uma trigger em GUI e converter para jass, o GUI cria muita coisa desnecessária. Torna o código horrivel para leitura e manutenção. Eu mesmo nem tenho paciencia para ler esses códigos ai.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31089
Re: [Duvida] Undeclared Variable
Sim bills,estava marcado criar as variables..
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
Va no seu Variable Editor e verifique se existe essa variavel ETG_tempX
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31089
Re: [Duvida] Undeclared Variable
Não bills,não existe essa variavel.
E agora,o que faço para resolver nesse caso?
E agora,o que faço para resolver nesse caso?
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
crie ela e as outras que foram acusadas.
Variable Name: ETG_tempX e ETG_tempY
Variabble Type: Real e Real
@Edit
Olhando as trigger no tópico da magias, vi que a udg_ETG_TempX e udg_ETG_TempY são usadas com custom script. Esse foi o problema, o World Editor não cria variaveis usadas apenas em custom scripts (ao meu ver).
Então apenas crie essas duas variaveis em seu variable editor e creio que funcionará perfeitamente.
Variable Name: ETG_tempX e ETG_tempY
Variabble Type: Real e Real
@Edit
Olhando as trigger no tópico da magias, vi que a udg_ETG_TempX e udg_ETG_TempY são usadas com custom script. Esse foi o problema, o World Editor não cria variaveis usadas apenas em custom scripts (ao meu ver).
Então apenas crie essas duas variaveis em seu variable editor e creio que funcionará perfeitamente.
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31089
Re: [Duvida] Undeclared Variable
Resolvido,não era nada disso billd,e que tinha uma outra magia no meu mapa q usava tempX e tempY,e eu declarei 2 variaveis no WE e ele apagou as duas..
problema resolvido
problema resolvido
Tamires- Número de Posts : 487
Data de inscrição : 09/01/2012
Reputação : 27 Pontos : 25348
Re: [Duvida] Undeclared Variable
Ah beleza. Menos mal então kkkk
Bills- Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31089
Tópicos semelhantes
» [Duvida]Como transforma uma "frase" em uma variable de integer?
» AJUDA Trigger+variable
» [Duvida] [DUVIDA]Net Cai Ao Abrir Warcraft
» [Dúvida] Duvida de como faser pegar uma arma.
» [Duvida] [duvida] icone verde
» AJUDA Trigger+variable
» [Duvida] [DUVIDA]Net Cai Ao Abrir Warcraft
» [Dúvida] Duvida de como faser pegar uma arma.
» [Duvida] [duvida] icone verde
TeaM KingS :: Games: :: Warcraft: World Editor :: :: :: Dúvidas/Problemas Resolvidos
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|