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 |
SCR_Ability | abilcode | No | |
SCR_AttackType | attacktype | No | |
SCR_Caster | unit | Yes | |
SCR_CasterX | real | Yes | |
SCR_CasterY | real | Yes | |
SCR_DamageType | damagetype | No | |
SCR_DestroyTree | boolean | No | |
SCR_Dummy | unit | Yes | |
SCR_DummyType | unitcode | No | |
SCR_ExplosionAoE | real | Yes | |
SCR_ExplosionDamage | real | Yes | |
SCR_ExplosionModel | string | No | |
SCR_Harvester | unit | No | |
SCR_HarvestOrder | ordercode | No | |
SCR_Index | integer | No | |
SCR_Interval | real | No | |
SCR_Level | integer | Yes | |
SCR_MaxIndex | integer | No | |
SCR_MinDistance | real | No | |
SCR_Model | effect | Yes | |
SCR_OrderId | ordercode | No | |
SCR_Owner | player | Yes | |
SCR_Real | real | Yes | |
SCR_Real2 | real | Yes | |
SCR_RocketCollision | real | No | |
SCR_RocketDebugTime | real | No | |
SCR_RocketFacingTime | real | No | |
SCR_RocketHeight | real | No | |
SCR_RocketModel | string | No | |
SCR_RocketScale | real | No | |
SCR_RocketSpawnOffset | real | No | |
SCR_RocketSpeed | real | Yes | |
SCR_ShotAngleWidth | real | No | |
SCR_ShotInterval | real | Yes | |
SCR_Skip | boolean | Yes | |
SCR_Stage | integer | Yes | |
SCR_Target | unit | Yes | |
SCR_TempDest | destructable | No | |
SCR_TempLoc | location | No | |
SCR_TempUnit | unit | No | |
SCR_X | real | Yes | |
SCR_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 Seeking Cluster Rockets ability.
// Copy Seeking Cluster Rockets 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.