[System] Exibir Velocidade do Herói
Página 1 de 1
[System] Exibir Velocidade do Herói
Instalação:
Para instalar este sistema, basta copiar o script que se encontra no spoiler logo abaixo e colar em uma trigger custom text vazia.
Como Funciona:
Basta o jogador digitar -ms (igual no DotA) para visualizar a velocidade de movimento do ou dos heróis que possuir.
Para instalar este sistema, basta copiar o script que se encontra no spoiler logo abaixo e colar em uma trigger custom text vazia.
Como Funciona:
Basta o jogador digitar -ms (igual no DotA) para visualizar a velocidade de movimento do ou dos heróis que possuir.
- Spoiler:
scope showMovespeed initializer init
//---------------------------------------------------------------------------------------------------------
private function filterUnit takes nothing returns boolean
local unit u = GetFilterUnit()
local player p = GetTriggerPlayer()
if IsUnitType(u,ConvertUnitType(0)) and IsUnitOwnedByPlayer(u,p) then
call DisplayTextToPlayer(p,0.,0.,GetUnitName(u) + " movespeed is |c009999ff" + I2S(R2I(GetUnitMoveSpeed(u))) + "|r")
endif
set p = null
set u = null
return false
endfunction
//---------------------------------------------------------------------------------------------------------
private function doAction takes nothing returns nothing
local group g = CreateGroup()
call GroupEnumUnitsInRect(g,GetWorldBounds(),Filter(function filterUnit))
call GroupClear(g)
call DestroyGroup(g)
set g = null
endfunction
//---------------------------------------------------------------------------------------------------------
private function init takes nothing returns nothing
local trigger t = CreateTrigger()
local integer i = 0
loop
call TriggerRegisterPlayerChatEvent(t,Player(i),"-ms",true)
set i = i + 1
exitwhen i == 12
endloop
call TriggerAddAction(t,function doAction)
set i = 0
set t = null
endfunction
//---------------------------------------------------------------------------------------------------------
endscope
Tópicos semelhantes
» [Duvida] Battle System / Combat System
» [System]WoW Hero Respawn System
» [Relíquia] Botas da Velocidade
» [Tutorial] Aumentando a Velocidade do World Editor
» [Upgrades Meat Hook] Dano, Distância, Velocidade e Tamanho.
» [System]WoW Hero Respawn System
» [Relíquia] Botas da Velocidade
» [Tutorial] Aumentando a Velocidade do World Editor
» [Upgrades Meat Hook] Dano, Distância, Velocidade e Tamanho.
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|