Thread: Table 3.1
View Single Post
Old 07-03-2008, 09:11 PM   #14
Here-b-Trollz
Corkscrew Chainsaw!!!
 
Join Date: Jun 2006
Posts: 711

Here-b-Trollz has a spectacular aura about (149)

Hero Contest #2 - 2nd Place

Default

Collapse JASS:
method reset takes nothing returns nothing
    call FlushStoredMission(gc,I2S(this))
endmethod

private method onDestroy takes nothing returns nothing
    call FlushStoredMission(gc,I2S(this))
endmethod

Strange... destroy and reset would appear to do the *exact* same thing. So, if you are removing the Timer object, just destroy it, but if you want to keep the object and just empty it out, use .reset()


Table is probably most useful as a global. But you can still use it as a local. In both cases, you create a new table with Table.create(), yes.


As for question three.... I don't think GetRandomInt() works the way you want it to...
__________________
By reading this signature, you agree that I cannot be held accountable for anything that I might say or do.
Here-b-Trollz is offline   Reply With Quote