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
964
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
964
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
964
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
964
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
964
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
964
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
964

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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      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