ok first i know there a way to do text wrap but idk how could some1 help me ?
is there another way xcept print screen
and my real kestion is my friend made me a spell jass, but its uncomplete and he really busy could some1 could just replace variable, i can set the raw code of spell and making it i just barely understand what to put on variable
srry for no text wrap i dont know how to do :/
is there another way xcept print screen
and my real kestion is my friend made me a spell jass, but its uncomplete and he really busy could some1 could just replace variable, i can set the raw code of spell and making it i just barely understand what to put on variable
JASS:
//TESH.scrollpos=0
//TESH.alwaysfold=0
scope SpellDmgDetect initializer Init
globals
//CONFIG HEADER //Below=Example
private constant integer ABID = 'AOsh'//REPLACE THIS TEXT WITH YOUR ABILITIES RAW CODE. EG. 'A000' OR 'A001'
private constant real LIFE = 5//REPLACE THIS TEXT WITH HOW LONG YOU WANT THE TEXTTAG TO LAST FOR
//END CONFIG HEADER //Above=Example
endglobals
private function FailSafe takes nothing returns boolean
return true
endfunction
private function DmgShow takes nothing returns nothing
local unit u = GetTriggerUnit()
local location l = GetUnitLoc(u)
local real dmg = GetEventDamage()
local texttag tt = CreateTextTagLocBJ(I2S(R2I(dmg)),l,0,12,255,255,255,100)
call SetTextTagLifespan(tt, LIFE)
call RemoveLocation(l)
set l = null
set u = null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
private function SplDctC takes nothing returns boolean
return GetSpellAbilityId() == ABID
endfunction
private function SplDctA takes nothing returns nothing
local unit u = GetSpellTargetUnit()
local trigger t = CreateTrigger()
call TriggerAddAction(t,function DmgShow)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DAMAGED)
set u = null
endfunction
private function Init takes nothing returns nothing
local trigger t = CreateTrigger()
local integer i = 0
loop
exitwhen i > 15
call TriggerRegisterPlayerUnitEvent(t,Player(i),EVENT_PLAYER_UNIT_SPELL_EFFECT,Condition(function FailSafe))
set i = i+1
endloop
call TriggerAddAction(t, function SplDctA)
call TriggerAddCondition(t, Condition(function SplDctC))
endfunction
endscope
Last edited: