function Debug takes string msg returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg)
endfunction
function DebugReal takes string msg, real r returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + R2SW(r, 1, 2))
endfunction
function DebugInt takes string msg, integer i returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + I2S(i))
endfunction
function DebugBoolean takes string msg, boolean b returns nothing
if (b) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = true")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = false")
endif
endfunction
function DebugUnit takes string msg, unit u returns nothing
if (u != null) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + GetUnitName(u) + ", ID(" + I2S(GetUnitUserData(u)) + ")")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = null")
endif
endfunction
function DebugPlayer takes string msg, player p returns nothing
if (p != null) then
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = " + GetPlayerName(p) + ", ID(" + I2S(GetPlayerId(p) + 1) + ")")
else
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = null")
endif
endfunction
function DebugLoc takes string msg, location l returns nothing
call DisplayTimedTextToPlayer(Player(0), 0, 0, 1000000, msg + " = X(" + R2SW(GetLocationX(l), 1, 2) + "), Y(" + R2SW(GetLocationY(l), 1, 2) + ")")
endfunction
Name | Type | is_array | initial_value |
FO_Ability | abilcode | No | |
FO_Angle | real | Yes | |
FO_AttackType | attacktype | No | |
FO_Caster | unit | Yes | |
FO_CurHeight | real | Yes | |
FO_DamageType | damagetype | No | |
FO_DestroyTree | boolean | No | |
FO_Distance | real | Yes | |
FO_Dummy | unit | Yes | |
FO_DummyType | unitcode | No | |
FO_Duration | real | Yes | |
FO_EXDamage | real | Yes | |
FO_EXModel | string | Yes | |
FO_EXNumber | integer | No | |
FO_EXRange | real | Yes | |
FO_FreezeDPS | real | Yes | |
FO_FreezeDPSSFX | string | No | |
FO_FreezeDPSSFXAttachment | string | No | |
FO_FreezeDuration | real | Yes | |
FO_FreezeSFX | string | No | |
FO_FreezeSFXAttachment | string | No | |
FO_FXTimer | real | Yes | |
FO_Harvester | unit | No | |
FO_HarvestOrder | ordercode | No | |
FO_Index | integer | No | |
FO_Interval | real | No | |
FO_Level | integer | Yes | |
FO_MainEXDamage | real | Yes | |
FO_MainEXModel | string | Yes | |
FO_MainEXNumber | integer | No | |
FO_MainEXRange | real | Yes | |
FO_MainOrbCollision | real | Yes | |
FO_MainOrbHeight | real | No | |
FO_MainOrbModel | string | No | |
FO_MainOrbScale | real | No | |
FO_MainOrbSpawnOffset | real | No | |
FO_MainOrbSpeed | real | Yes | |
FO_MaxDistance | real | Yes | |
FO_MaxHeight | real | Yes | |
FO_MaxIndex | integer | No | |
FO_Model | effect | Yes | |
FO_OrbAoE | real | Yes | |
FO_OrbArc | real | Yes | |
FO_OrbGap | real | Yes | |
FO_OrbHeight | real | No | |
FO_OrbModel | string | No | |
FO_OrbNumber | integer | Yes | |
FO_OrbScale | real | No | |
FO_OrbSpeed | real | Yes | |
FO_Owner | player | Yes | |
FO_Stage | integer | Yes | |
FO_Target | unit | Yes | |
FO_TempDest | destructable | No | |
FO_TempLoc | location | No | |
FO_TempUnit | unit | No | |
FO_X | real | Yes | |
FO_Y | real | Yes |
// Created by Ofel
// Credit goes to :
// - Vexorian for dummy.mdl
// Enable "Automatically create unknown variables while pasting trigger data" on File --> Preferences.
// Import dummy.mdx from Import Manager (F12).
// Copy Frost Orb ability.
// Copy Frost Orb dummy.
// Copy Frost Orb triggers (include Variable Creator).
// Delete Variable Creator.
// Don't forget for credit :D
// Note: Variable Creator is just for helping you creating required variables automatically.