Thread: Thunder Whirl
View Single Post
Old 10-10-2007, 06:46 PM   #15
Evil Emoticon
moyack's Avatar

Respected User
Project Leader: PoC
Join Date: Jan 2006
Posts: 3,279

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack

Originally Posted by Fireeye
Do you mean using something like this?
Collapse JASS:
    public function Init takes nothing returns nothing
        local trigger t = CreateTrigger()
        call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_UNIT_SPELL_CHANNEL )
        call TriggerAddCondition( t, Condition( function Cast_Conditions ) )
        call TriggerAddAction( t, function Cast_Actions )
        call Preload(LightningId)
        call Preload(CasterEffect)
        call Preload(HitEffect)
        call Preload(HitEffectAdd)
        call Preload(SlideEffect)
        set Bex = Condition(function KBFilter)
        set TreeRect = Rect(256.0 , 2400.0 , 448.0 , 2656.0)
        set TerrainCheck = CreateItem(TerrainItem,0.00,0.00)
        call SetItemVisible(TerrainCheck,false)
The other 2 things are already done, well i never got any problem with
set glob[Integer] = twdat
but i'm too lazy to make test right now so i changed it
Any other constructive critiques are welcome.

I mean this:
Expand JASS:

About this line of code set glob[Integer] = integer(twdat), it is mandatory in order to guarantee compatibility with newer versions of JassHelper, because this will generate a serious syntax error.

EDIT: Here's the thread related with the integer() stuff:
moyack is offline   Reply With Quote