Getting back into vJass

Tyman2007

Ya Rly >.
Reaction score
74
Hi there, I've been gone for quite some time, so can i have a basic vJass trigger? something that does nearly nothing that's fully functional so i can get back into coding.
 

Azlier

Old World Ghost
Reaction score
461
Uhhh? You want a small trigger? Alrighty then...?

JASS:
scope Lol initializer Init

private function Actions takes nothing returns boolean
    call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Lol, a unit dieded.")
    return false
endfunction

private function Init takes nothing returns nothing
    local trigger t = CreateTrigger()
    local integer i = 0
    loop
        exitwhen i == 16
        call TriggerRegisterPlayerUnitEvent(t, Player(i), EVENT_PLAYER_UNIT_DEATH, null)
        set i = i + 1
    endloop
    call TriggerAddCondition(t, Condition(function Actions))
endfunction

endscope
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top