kingkingyyk3
Reaction score
216

Profile posts Latest activity Postings About

  • Oh, UnitAlive. But I don't think the script has any problem, anyway, have you tried to update jasshelper? :)
    >tested by calling 1000 function per period.
    Still depends how they're called, like I just explained to you.
    T32 vs Inlined T32 - GG! (Inlined T32 should slaughter the array stack.)
    Everything faster if you inline it. But T32 will be faster in real situations - ie. when, perhaps, you have 10 spells with one instance running each. T32 will beat the array stack. :p

    Of course, if you're a real efficiency freak, then you can still inline the array stack and hook into T32's trigger. But this makes your code messy.
    Naturally, to optimise at this level (ie. T32 vs array stack) is both impractical (due to being circumstantial) and irrelevant (due to having no tangible benefit). One should use the interface they prefer. :)
    JASS:
    scope Spell
        private struct Data
        endstruct
    
        private function Periodic takes nothing returns boolean
            local Data d  = KT_GetData()
            //If you want to stop, return true
            //Else, return false
        endfunction
        
        private function Act takes nothing returns nothing
            local Data d = Data.create()
            //Do stuffs.
            call KT_Add(function Periodic, d, 15.)
        endfunction
    endscope
    Would you mind making me an example of using KT2 to make two spells for me?

    One that would wait fifteen seconds then kill the triggering unit, and one that kills everything in the map every fifteen seconds once it goes off.

    Just having a hard time figuring it out, and I can`t read Sandman/Sharl code.
    U are my idol, cold and cute :p
    ...same as Yami-chan :D
    I think I u will get more reputation point in the future <3
    damn poor guy who keeps on -repping you since i see you have to blocks of rep the one then two and now one again.
  • Loading…
  • Loading…
  • Loading…
General chit-chat
Help Users

      The Helper Discord

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top