Static or Dynamic Dummies

_whelp

New Member
Reaction score
54
Imagine a spell, where there are six dummies with effects attached to them. Should they be dynamic, or static? If they can be static, how?
 
Reaction score
341
Static would definitely be better, but I wouldn't know how to do it.

At least not without a bunch of testing.
 

Tom Jones

N/A
Reaction score
437
Have you ever recycled timers?

JASS:
scope Bla
globals
    private constant integer DUMMY_ID = 'u000' 
    private unit array DUMMIES
    private integer INDEX = 0
endglobals

function NewDummy takes player p, real x, real y returns unit
    if INDEX == 0 then
        return CreateUnit(p,DUMMY_ID,x,y,0)
    else
        set INDEX = INDEX-1
        call ShowUnit(DUMMIES[INDEX],true)
        call SetUnitOwner(DUMMIES[INDEX],p,true)
        call SetUnitPosition(DUMMIES[INDEX],x,y)
        return DUMMIES[INDEX]
    endif
endfunction

function ReleaseDummy takes unit u returns nothing
    call ShowUnit(u,false)
    set DUMMIES[INDEX] = u
    set INDEX = INDEX+1
endfunction
endscope
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
Me too, because I am using my system...

I learnt from Viikuna~ A dummy is enough...
 

wraithseeker

Tired.
Reaction score
122
Use a dummy recycling system or just create them oncast or maybe if you know how to make a dummy recycling system you can make it.

Hint: wc3c has some dummy systems.
 
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