Spell Panda Roll

Kenny

Back for now.
Reaction score
202
JASS:
// How much damage is taken, per second.
private constant function BURNDAMAGE_AMOUNT takes integer level returns real
    return level * 100.
    // 100, 200, 300
endfunction


Must have overlooked it. :p

Anywho, version 2 seems pretty dead on. Nice work.
 
Reaction score
456
JASS:
private static method Cond takes nothing returns boolean
    return GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("patrol") or GetIssuedOrderId() == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod

-->
JASS:
private static method Cond takes nothing returns boolean
    local integer id = GetIssuedOrderId()
    return id == OrderId("move") or id == OrderId("smart") or id == OrderId("patrol") or id == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod


Awesome.
 

Romek

Super Moderator
Reaction score
963
JASS:
private static method Cond takes nothing returns boolean
    return GetIssuedOrderId() == OrderId("move") or GetIssuedOrderId() == OrderId("smart") or GetIssuedOrderId() == OrderId("patrol") or GetIssuedOrderId() == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod

-->
JASS:
private static method Cond takes nothing returns boolean
    local integer id = GetIssuedOrderId()
    return id == OrderId("move") or id == OrderId("smart") or id == OrderId("patrol") or id == OrderId("attack") and IsUnitInGroup(GetTriggerUnit(), Casters)
endmethod


Awesome.

Such a minor change :p
Thanks anyway :)
 

Viikuna

No Marlo no game.
Reaction score
265
Well, you should try to use as few function calls as you can :D
 

Leazy

You can change this now in User CP.
Reaction score
50
Awesome spell, very original (never seen a spell like this before) and fun to use. +rep. However, when I use it when already rolling it gets fucked up, harder to controll and the roll unit will be the normal panda. Try to use it when already rolling to see what I mean.
 

Romek

Super Moderator
Reaction score
963
Awesome spell, very original (never seen a spell like this before) and fun to use. +rep. However, when I use it when already rolling it gets fucked up, harder to controll and the roll unit will be the normal panda. Try to use it when already rolling to see what I mean.
I know. Just make the duration shorter than the cooldown, or the cooldown longer than the duration (Yes, they're the same thing).

Thanks anyway :)
 

Leazy

You can change this now in User CP.
Reaction score
50
I know. Just make the duration shorter than the cooldown, or the cooldown longer than the duration (Yes, they're the same thing).

Thanks anyway :)

Ah alright, however, what if you have a refresher type of item (Item that refreshes all cooldowns). Maybe add something that prevents the unit to cast the spell again if he's already casting it?
 

Romek

Super Moderator
Reaction score
963
Then Disable the ability when it's cast, wait the duration, and re-enable it after.
I don't think it's necessary to make a new trigger just for that :p
 

Leazy

You can change this now in User CP.
Reaction score
50
Then Disable the ability when it's cast, wait the duration, and re-enable it after.
I don't think it's necessary to make a new trigger just for that :p

Still, it would not hurt to just add a buff to the spell, and if you have the buff stop casting unit (could be done afterwards by any GUI-er to tough) so nvm.
 

Romek

Super Moderator
Reaction score
963
Bump. I checked the PandaBall spell over at Wc3C. I prefer my one. The bounce isn't amazing :p. Especially how it bounces off everything!

I might add a bounce in, only off cliffs and boundry though.
 

Charapanga

New Member
Reaction score
46
Awsome job Romek, I'm still a newbie at making spells, but i hope i will be one day as good as you, i'm still making primitive spells with GUI, i just can't seem to learn JASS and I've read almost all of the tutorials, but you know what they say, when you fall off a horse, you gotta go right back on it :)

Five stars man!
 

Romek

Super Moderator
Reaction score
963
Awsome job Romek, I'm still a newbie at making spells, but i hope i will be one day as good as you, i'm still making primitive spells with GUI, i just can't seem to learn JASS and I've read almost all of the tutorials, but you know what they say, when you fall off a horse, you gotta go right back on it :)

Five stars man!
Thanks! :D
About Jass, all I can say is:
  • Get Newgen. The highlighting, globals and function list are awesome (Especially for beginners)
  • Keep practising
  • Read over some simple codes, systems, snippets and spells :)
 

Flare

Stops copies me!
Reaction score
662
JASS:

Ahm... where exactly is that boolexpr being used (it's the one in the struct) - I can't seem to find it, so I'm beginning to suspect it's a bit useless :p

And why exactly do you bother with a group member for the TimedEffect struct? You could just use a global group (it is only a temporary group) since there's no requirement to keep track of units for the duration of the instance
Same applies to the group member of the spell struct, it appears to be used in same way, so global group would easily work just fine instead
And!
JASS:
call GroupRemoveUnit(a.G, u)
call GroupClear(a.G)

That's a bit pointless, don't you think? The group is going to be emptied as a result of the FirstOfGroup loop, so why bother clearing it after when it's already empty?
 

Romek

Super Moderator
Reaction score
963
JASS:

Ahm... where exactly is that boolexpr being used (it's the one in the struct) - I can't seem to find it, so I'm beginning to suspect it's a bit useless :p
That's really odd. I'm sure there was a use for it somewhere, at some time. :p

And why exactly do you bother with a group member for the TimedEffect struct? You could just use a global group (it is only a temporary group) since there's no requirement to keep track of units for the duration of the instance
Same applies to the group member of the spell struct, it appears to be used in same way, so global group would easily work just fine instead
Made the groups static :).

And!
JASS:
call GroupRemoveUnit(a.G, u)
call GroupClear(a.G)

That's a bit pointless, don't you think? The group is going to be emptied as a result of the FirstOfGroup loop, so why bother clearing it after when it's already empty?
I agree. I don't know why I put that there either.. :nuts:

Updated
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Excellently coded and carried through spell!

You make the Pandaren proud!


Resource approved, for the Pandaren!
 

Romek

Super Moderator
Reaction score
963

tooltiperror

Super Moderator
Reaction score
231
Jus an idea, why not make it play the "I bring Pandemonium!" sound on cast, would be a nice addition.
 
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