System GTrigger Event System

Indeed. Thats why its called SpellEvent. Because it only offers spell event responses.
Consider it considered.
Yes, i (probably) do. And im thankful for that. Makes me think im useful for something.
And here i was, thinking it was the other way 'round. I guess thats normal when arguing and defending your position.
Just say that you cant follow. Or go look it up on wikipedia. He (Jesus4Lyf) seems to understand me.
You missed the point. Read again. It doesnt matter if its not a big deal. Its counter intuitive.
lol. I just discovered a work-around to your pathetic excuse for a post. if i click on quote the nested quotes go away :p
ok, look, i don't understand why you want a system that does less. that's what you're admitting to about spellevent in regards to gtrigger. you're tellingme that spellevent does less. that's not what i'm interested in.

the other stuff that you are talking about in your post is completely irrelevant, so i'm not responding to it.

the thing about the returning false...as i already explained there's nothing wrong with the fact that he has functions that require you to return false...he has redundant triggers which you can use instead which do not require you to return false.
 
your pathetic excuse for a post.
. . .
Thank you (i guess).

i don't understand why you want a system that does less.
Because it does what it does in a (subjectively) better way than GTrigger.

there's nothing wrong with the fact that he has functions that require you to return false
You mean, other than that its counter intuitive?
 
You mean, other than that its counter intuitive?

Honestly, I would agree with you, if we were still like a year in the past. However, now almost everyone these days inlines their conditions and actions for a spell into the conditions function, which must return a boolean.

So for a lot of us, it is actually intuitive to return false in the functions used by GTrigger. I see your statement as being a little too subjective to be considered a decent argument.

@ SanKaKu:

Please try to be civil when writing your posts, Deaod is only trying to discuss his point of view with J4L. There is no need for calling his posts 'pathetic'.
 
SanKakU said:
there's nothing wrong with the fact that he has functions that require you to return false

The point is that it requires more work for such a minor speed difference. Yes, adding one new line and changing [ljass]nothing[/ljass] to [ljass]boolean[/ljass] takes all of two seconds but simply forgetting either of those could cause bugs. For example, IIRC it will desync on macs if you don't have the return there.

So it's not really worth it, sooner or later someone is going to forget about the return and franticly search his map for why everyone is desyncing. Usually scripts can't account for user stupidity but it's something that I see that can happen often as a simple mistake.
 
Jasshelper kinda refuses to let you use codes that don't return booleans as boolexprs. Or is it PJass? Either way, there is accident prevention there.
 
Its PJASS. And PJASS doesnt do deep code inspection. So it only complains when you directly use code variables of functions that dont return a boolean inside Condition() or Filter() calls.
 
PJass doesn't even let me set a code variable to a function that returns a boolean. Maybe I can try returning a code variable, unless Blizzard broke something that lets you do that.

Or I can invent a function which takes a code variable. But there's no fun in that.
 
The point is that it requires more work for such a minor speed difference. Yes, adding one new line and changing [ljass]nothing[/ljass] to [ljass]boolean[/ljass] takes all of two seconds but simply forgetting either of those could cause bugs. For example, IIRC it will desync on macs if you don't have the return there.

So it's not really worth it, sooner or later someone is going to forget about the return and franticly search his map for why everyone is desyncing. Usually scripts can't account for user stupidity but it's something that I see that can happen often as a simple mistake.

ok when you put it like that, it finally makes sense...it's easy for me to follow the instructions though which expressly tell you how to use the functions...although you say you can return a false and change the return to boolean rather than nothing likewise you can do the reverse and change the add to register and the action to event at the bottom of the trigger. that's if you were using the addaction functions to begin with, and if you were, it's your fault if you didn't read the instructions. the only thing counter intuitive here is what's going on in the brain of the man not following the instructions.

but i guess that's just my opinion. maybe i'm an idiot for assuming the guy who wrote a system and the instructions for it needs to be paid attention to if you wanted to use the system.

BUT SERIOUSLY...GETTING BACK ON TOPIC...
in regards to suggesting something about the system for it to be improved, i suggest an option to detect a unit is trained events and unit is sold events...other than that...i don't really got any complaints. with further options it would look nicer and nicer, i suppose.
Jasshelper kinda refuses to let you use codes that don't return booleans as boolexprs. Or is it PJass? Either way, there is accident prevention there.
yeah, that's what i thought. which sortof makes triggerhappy's defense a little pointless.

edit: just wanted to add that i'm sorry if i seemed hostile, i was after all responding to his insult of my request with an insult of my own.
 
Got a question. Speed-wise...
if i have the standard UnitDies trigger with some condition function that returns true for 15 out of 20 units.
Would it be (again speed-wise) better if I instead use 15 times this
GT_AddUnitDiesAction(func, unittypeid) function with the 15 corresponding Unit Ids?

Because I have a map where lot's of units die frequently and I have more than 3 triggers using on death triggers... And this way I could save a lot unnecessary Condition runs or?
 
Would it be (again speed-wise) better if I instead use 15 times this
GT_AddUnitDiesAction(func, unittypeid) function with the 15 corresponding Unit Ids?
Probably makes no difference. But if it is checking 15 units with x "or" y etc, than the GTrigger evaluation is probably simpler. :)
The fastest way to do this is one trigger and GetUnitTypeId(..)<'xxxx' with some careful rawcode manipulation. :p
 
Hmm okay, will try it with GT then as I have some or stuff as well...
Will make the code clearer as well :>
 
JASS:
    set gg_trg_Untitled_Trigger_002 = CreateTrigger(  ) // _002
    call GT_RegisterStartsEffectEvent(gg_trg_Untitled_Trigger_001,&#039;A000&#039;) // 001
 
Some triggers should just fire no matter what, as many triggered-events just happen to launch when no specific spell is cast. Is there support (or, can there be support?) to do something like put zero for the rawcode so it just always fires?
 
So you mean just attach by Boolexpr and not use the rawcode at all?
 
The system has a lot of uses that I've seen, one of them is the ability to minimalize handle count. You have a lot of great systems and the hashing work you've put into this is outstanding, so I feel it's not my place to pop up and ask for implementations, but using that efficient data-to-trigger attaching system you mentioned would be great for some projects I work on (GetTriggerId()?)
 
Adding this to the interface would be as simple as changing this:

JASS:
//
    //! textmacro AddSpecialAllPlayersWrapper takes EVENT
        public function Add$EVENT$Action takes code func, integer special returns nothing
            call TriggerAddCondition(Register$EVENT$Event(CreateTrigger(),special),Condition(func))
        endfunction
    //! endtextmacro


to this:

JASS:
//
    //! textmacro AddSpecialAllPlayersWrapper takes EVENT
        public function Add$EVENT$Action takes code func, integer special returns nothing
            call TriggerAddCondition(Register$EVENT$Event(CreateTrigger(),special),Condition(func))
        endfunction
        // new
        public function Add$EVENT$Condition takes code func returns nothing
            call TriggerAddCondition($EVENT$Trigger,Condition(func))
        endfunction
    //! endtextmacro
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    We have some elderly guests that regularly come hang out at the bar at the end of the night, and every once in a while we don't see someone for a few weeks and then someone shows up with their obituary.
  • Varine Varine:
    We usually let them do their memorials there in the morning if they want to and I'll make them some snacks and drinks. There was one guy named Tom that came in like every night and would sit by himself and get a bunch of soup and a glass of wine. idk why but he LOVED our fucking soup, like he would order a fucking quart of it at a time and would always get so sad when we stop doing it for the summer.
    +1
  • Varine Varine:
    But he also loved our calamari, which is another thing I hate but it sells super well so I can't change it. There was one day he came in and was asking me how to make it, because he tried to at home once in the off season when we stop running it and he really wanted it lol
  • Varine Varine:
    I think he's one of the only people I've made recipes for for free because he really wanted a broccoli cheddar, and it was like dude I don't have a recipe, it's just whatever I have, but here, this is how you do it
  • Varine Varine:
    I don't think he ever figured out how to do the calamari in a pan though, like idk how to do that either. He was afraid of the at home deep fryers though and it's like yeah, that's fair, I am too
  • Varine Varine:
    He was just such a sweet old man, we had two servers pregnant and they held a baby shower together, he was soooooo fucking excited to get to see a baby. Unfortunately he died a month or so before they were born
  • The Helper The Helper:
    So I decided to Google some people that I had not seen or heard from in a while and sure enough one of my old best friends, we had a falling out years ago but whatever, find out he died of Pancreatic Cancer in January. I have also lost a few of my closer acquaintances from growing up the last year. Getting old - people die - I kinda thought it was going to be this way a few years ago....
    +2
  • The Helper The Helper:
    Forum running super slow again
  • Ghan Ghan:
    Not really clear from the stats as to what is causing the slowness.
  • Ghan Ghan:
    We get a lot of guest traffic so it may just be the load is getting too high and not from any particular source.
  • Ghan Ghan:
    Looks like the server is maxed out on CPU.
  • Ghan Ghan:
    Oh it looks like a lot of the traffic is Silkroad Forums. That domain isn't protected by Cloudflare.
  • Ghan Ghan:
    But the old Silkroad site is still on its own server. I just had a test site set up on this server for it.
  • Ghan Ghan:
    I just disabled that test site. Let's see if that helps the load.
  • Ghan Ghan:
    Looks much better already.
  • The Helper The Helper:
    I had actually forgot about the Silkroad site. I had asked
  • The Helper The Helper:
    SD Ryoko about it and he said the couple of people left on there really like it, that was a few years ago, maybe I should check back
  • jonas jonas:
    I guess when you're getting old, and the last day of soup season draws near, you start wondering
  • jonas jonas:
    will I make it to the start of the next season? or was this the last time I'll ever have my favorite dish?
  • The Helper The Helper:
    I am doing my first Vibe Coding project. In installed the environment and tools according to instructions but it is all chat doing this for me at my direction. It is fun really and holy shit I might finish in 2 hours what it would have taken a day to in my Access and this would be an electron app complete new
  • Ghan Ghan:
    Good stuff.
  • Ghan Ghan:
    Just make sure it is secure. :)
    +1
  • The Helper The Helper:
    It will only be on internal network
  • jonas jonas:
    Man the AI is good about gaslighting about security though. I've had several times where I pointed out security problems and it tried to convince me that with a tiny tweak it suddenly becomes secure
  • jonas jonas:
    Like using a distrobox as a "secure" container, and when I point out that's not secure at all, it claimed that specifying home will make it secure

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top