System BuffStruct

Jesus4Lyf

Good Idea™
Reaction score
397
Code limit and extremely limited bank system is just plain FAIL and destroys everything that made the SC2 engine superior to WC3. :nuts:
Whilst I totally agree, I must insist this thread stays on topic. :)

By the way, this system often crosses my mind and after my placement finishes, I hope to revisit it. :)
 

Laiev

Hey Listen!!
Reaction score
188
I got one question...

Can I create more then 1 BuffType per trigger?

example:

JASS:
//! runtextmacro BuffType("Return")
    //! runtextmacro SetBuffName("Return")
    //! runtextmacro SetBuffAlignment("NEUTRAL")
    //! runtextmacro SetBuffTooltip("This unit is being Returned; it will return to its previous location soon.")
    //! runtextmacro SetBuffIcon("ReplaceableTextures\\CommandButtons\\BTNDaggerOfEscape.blp")
//! runtextmacro BuffStruct()
    real x
    real y
    method onCreate takes nothing returns nothing
        set this.x = GetUnitX(this.unit)
        set this.y = GetUnitY(this.unit)
    endmethod
    method preDestroy takes nothing returns nothing
        call SetUnitX(this.unit, this.x)
        call SetUnitY(this.unit, this.y)
    endmethod
//! runtextmacro EndBuff()

//! runtextmacro BuffType("Return")
    //! runtextmacro SetBuffName("Return")
    //! runtextmacro SetBuffAlignment("NEUTRAL")
    //! runtextmacro SetBuffTooltip("This unit is being Returned; it will return to its previous location soon.")
    //! runtextmacro SetBuffIcon("ReplaceableTextures\\CommandButtons\\BTNDaggerOfEscape.blp")
//! runtextmacro BuffStruct()
    real x
    real y
    method onCreate takes nothing returns nothing
        set this.x = GetUnitX(this.unit)
        set this.y = GetUnitY(this.unit)
    endmethod
    method preDestroy takes nothing returns nothing
        call SetUnitX(this.unit, this.x)
        call SetUnitY(this.unit, this.y)
    endmethod
//! runtextmacro EndBuff()
 

Jesus4Lyf

Good Idea™
Reaction score
397
There is no preloading for the buff abilities, yet.

you'll have to wait a while for J4L to update or if you know your vJASS, you can just do it yourself (like what i did)
Ew, I forgot that? My bad.
Yeah, give me a few weeks...

But you can always add/remove the buff for a dummy unit on map init, I suppose. :)
 

muzk

Member
Reaction score
3
Oh, yes I failed, wrong thread. So, if I wanna increment for example 40% damage from attacks I just have to play with damageDealt method? ^^

But I want it for an attribute of a unit
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Is this system still working? For some reason my buff won't show up inside the object editor.

JASS:

//! runtextmacro BuffType("Dummy")
    //! runtextmacro SetBuffName("Dummy")
    //! runtextmacro SetBuffAlignment("NEGATIVE")
    //! runtextmacro SetBuffTooltip(" ")
    //! runtextmacro SetBuffIcon("None")
//! runtextmacro BuffStruct()
 

Jesus4Lyf

Good Idea™
Reaction score
397
Do you end your buff?
[LJASS]//! runtextmacro EndBuff()[/LJASS]
JASS:
//! runtextmacro BuffType("Dummy")
    //! runtextmacro SetBuffName("Dummy")
    //! runtextmacro SetBuffAlignment("NEGATIVE")
    //! runtextmacro SetBuffTooltip(" ")
    //! runtextmacro SetBuffIcon("None")
//! runtextmacro BuffStruct()
//! runtextmacro EndBuff()
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Do you end your buff?
[LJASS]//! runtextmacro EndBuff()[/LJASS]
JASS:
//! runtextmacro BuffType("Dummy")
    //! runtextmacro SetBuffName("Dummy")
    //! runtextmacro SetBuffAlignment("NEGATIVE")
    //! runtextmacro SetBuffTooltip(" ")
    //! runtextmacro SetBuffIcon("None")
//! runtextmacro BuffStruct()
//! runtextmacro EndBuff()

Yeah.

EDIT:
I think it may have to do with:
[ljass]//! externalblock extension=lua ObjectMerger $FILENAME$[/ljass]

Works perfectly fine in AIDS and Damage:
[ljass]//! external ObjectMerger w3a AIlz dprv anam "Life Bonus" ansf "(Damage System)" Ilif 1 500000 aite 0[/ljass]
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Strange. Does it work if you open/save/close the map a couple of times? Or if you populate it with the default stuff in the documentation, and save/close/open couple of times? It is common for BuffStruct buffs to not show up the first couple of times, for some odd reason... =/

I've tried opening and closing repeatedly, using the buffs that came with the demo map, etc. Nothing comes up. :(

EDIT: After restarting my computer, the buff finally showed up. How do I manipulate the buff when it's applied with an ability?
 

Jesus4Lyf

Good Idea™
Reaction score
397
EDIT: After restarting my computer, the buff finally showed up. How do I manipulate the buff when it's applied with an ability?
Yea, JassHelper can be a bit flakey with how it compiles BuffStruct. It's strange.

To manipulate the buff? Refer to the documentation and examples... but if you need help with something specific, feel free to ask and perhaps we can help...? :)
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Well, I have an ability that applies the buff. I've added an onCreate method and onDestroy method, but nothing happens. Is there something I need to do?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      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