Help - JASS spell (Idiot Coder)

Laiev

Hey Listen!!
Reaction score
188
well, you'll need TimerUtils to test it... (sorry for don't tell before)

also... i just give a example... of course you'll need scope/library to make private things work and event (din't put any)

about the SetUnitFacing, i'm sorry :p is just a mistake
 

megma

New Member
Reaction score
1
well, you'll need TimerUtils to test it... (sorry for don't tell before)

also... i just give a example... of course you'll need scope/library to make private things work and event (din't put any)

about the SetUnitFacing, i'm sorry :p is just a mistake

Ohs, okays.

Haha, well, I techinally didn't know >.< like I said in title, idiot coder.

Haha, we all make mistakes, take me trying to code for an example >.< lol

Edit: also, a suggestion for the timer? XD
 

Laiev

Hey Listen!!
Reaction score
188
anyone... o.õ

configure in what way you want.. just timerutils is required
 

megma

New Member
Reaction score
1
Reduce spoon-feeding.
Can you try to debug it by using BJDebugMsg?

Oh my gosh, my thought exactly. XD (sorry Laiev, but that was my first thought)

Anyway, the problem is, while yes it technically does move the unit from the yellow portal to the blue port, but then the unit is stuck there trying to move and keeps being sent in the middle of it.

Umm... wait, DUH >.< sorry, like I've said before, I'm a bit of an idiot XP

Anyway, now I need to fix the fact that once you create both portals. And then recreate the blue portal, it stops working. But anyway, I'm not sure on what to check for, for BJDebugMsg.

Hmm... maybe its the
JASS:
   if not UnitAlive(d.ca) or not UnitAlive(d.ta) then
        call ReleaseTimer(d.t)
        call d.destroy()
    endif


maybe the creation acts before that destroy, thus clearing the d.ca/ta and haven't nothing to check?

Hmm... should I change it from or to and? Or would that result in a memory leak do to, uhh, idk data piling up? Hmmm.... I'm not sure. Maybe something will hit me tomorrow. G'night all.
 

Laiev

Hey Listen!!
Reaction score
188
i think you should use 2 triggers, 1 per portal (in jass, use just differents functions)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top