• 0

    posted a message on What is the best way to do this?

    No probs. :) Glad it worked.

    Posted in: Triggers
  • 0

    posted a message on What is the best way to do this?

    Create a sub-function that allows you to input the lower and upper bounds, make the function return a boolean.

    So your function would be.

    boolean isInLimits(int x, int lower, int upper){
        return x > lower && x < upper
    }
    

    (Sorry I code in galaxy, cos i hate GUI)

    • Just loop isInLimits by 65 divided by the standard gap in between your lower and upper bounds
    • So if its 5 numbers. 65 / 5 = 13 Times, to iterate entirely.
    • Find a formula to map the lower and upper limits to the numbers 0 to 13.
    • If isInLimits returns true, you have found that your integer lies between the bounds, so just break the loop and use those bounds.

    And you're set.

    Hope this is what you're looking for.

    Posted in: Triggers
  • 0

    posted a message on [WIP] Win the Crowd

    @Bounty_98: Go

    Mm.. Yeah, I think i saw that thread (Boss Bars: Energy). Apparently you gotta update it or it won't refresh right?

    Posted in: Project Workplace
  • 0

    posted a message on [WIP] Win the Crowd

    Unrelated question.. How did you get boss bars working with energy?

    Posted in: Project Workplace
  • 0

    posted a message on Add Player group to Player group not working?...

    @s3rius: Go

    Ah ok. whoops. misread his post. my bad >_< thanks for the constructive feedback.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Add Player group to Player group not working?...

    @s3rius: Go

    I recall i tried without StringExternal(), but the editor bugged out on me. Maybe there was some silly syntax error.. Anyway, with regards to the problem I believe it's most likely what you said, an initialization problem. Will try it out once I get my hands on my editor again.

    Btw, stupid question: StringExternal() returns a string right?.. If it doesn't that would explain why it didn't work when I took it away.

    @Kueken531

    I do believe you are mistaken? I didn't exactly use IntToText, nor did i even know such a function exists.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Add Player group to Player group not working?...

    @SouLCarveRR: Yeah, thats what i did as a workaround. Point here is that these functions might be bugged, thus I inquire if anyone else faces this problem so hopefully blizzard notices and fixes it -_-

    @s3rius: Go

    If that was the case, wouldn't we expect the debug output to be 1 : 1? It still shows 0 : 1. =/

    TriggerDebugOutput(1, StringExternal(IntToString(PlayerGroupCount(bbInfo[id].g))  + " : " + IntToString(PlayerGroupCount(PlayerGroupActive()))), true);
    

    As there is no negation within IntToString(PlayerGroupCount(bbInfo[id].g)

    Oh.. and i forgot to mention. 'bbInfo[id].g' is 'g2', its a struct/record. I tried using a local playergroup, same problem. So i doubt theres anything wrong with the struct.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Add Player group to Player group not working?...

    Hey, anyone ever tried this function?.. It doesn't seem to work. Or is it just me?..

    Heres the code snippet.

    bool show = false;
    bool b
    playergroup g = PlayerGroupSingle(1);
    playergroup g2; //This is group that is declared globally
    
    libNtve_gf_AddPlayerGroupToPlayerGroup(g, g2);    //Add
    
    DialogControlEnable("whatever", show) //Hide Dialog
    
    b = !PlayerGroupCount(bbInfo[id].g) == PlayerGroupCount(PlayerGroupActive());
    TriggerDebugOutput(1, StringExternal(IntToString(PlayerGroupCount(bbInfo[id].g))  + " : " + IntToString(PlayerGroupCount(PlayerGroupActive()))), true);
    
    TriggerEnable("whaevertrigger", b);
    

    Notes:

    • show and g are actually passed as parameters, they are declared in the snippet just for illustration
    • g2 is intended as a storage group that stores all "flagged" players.
    • b is used to deactivate a trigger when no players can view the dialog.
    • The function adds all members of g to g2, then compares if the size of g2 is equal to all active (human) players.

    If the size is equal, b should evaluate to false. However its not working.. The debug output is "0 : 1", when it should be "1 : 1" (Since i'm the only active player)

    Posted in: Galaxy Scripting
  • 0

    posted a message on Removing Trigger Events

    @Bezerker18: Go

    Are you working with galaxy?.. Because i tried getting multithreading to work with custom script. didn't have much luck.

    Posted in: Galaxy Scripting
  • 0

    posted a message on [help] Should i write my ex Girlfriend ?

    Good to know that's settled. Way to break the ice. Cheers dude.

    Posted in: Off-Topic
  • 0

    posted a message on [help] Should i write my ex Girlfriend ?

    I've been in a similar boat. Forgive me for being cynical, but I don't believe in second chances.

    I really think this one depends on the reason she decided to call it off with you in the past. If you believe the changes you went through during the camp have invalidated that reason, You may have a second chance.

    If it was to hook up with someone else (Girls usually don't admit this) then forget about her, get closure and forget about her. My ex refuses to take my calls almost all the time so I kinda gave up trying to salvage a friendship. I'm convinced she cheated because I have incriminating evidence. But I chose not to keep it.

    Life ain't fair. Sometimes you gotta choose to put the past behind and just move forwards. The last thing you'd want is for her to call it off for the same reason that it happened in the past.

    If you really want to give it a try. Try and find out why she called it off in the past (Difficulty: Insane), then make your decision.

    Whatever it is, If my ex ever comes running back to me. She's not getting a second chance because I don't think I can trust her again.

    anyway, back on topic. I second what creosmalkor said.

    Posted in: Off-Topic
  • 0

    posted a message on [Blizz Dota] Hero Selection Interface

    @progammer: Go

    Awesome stuff. Bravo. It makes me jealous that I don't have as much free time to play with the editor as most of you guys.

    There's seriously a lot of concepts I'd like to try get running in the editor. =/

    Posted in: Project Workplace
  • 0

    posted a message on Presenting: The Fractalisk (1000x more epic than the Uberlisk)

    @tigerija: Go

    I second that! : O

    Just comes to show the potential of the galaxy editor. Was this done with data or triggers? If triggers, galaxy or GUI?

    Posted in: General Chat
  • 0

    posted a message on Carrier in my Carrier

    A screenshot would be nice. Any chance you could post one? oO

    Posted in: Off-Topic
  • 0

    posted a message on Hi, I'm Korean and information steel map

    @progammer: Go

    I think he's trying to say his map was stolen and modified with some inappropriate content. =/ Thats what I manage to interpret from the context of what appears to be a translation.

    Posted in: General Chat
  • To post a comment, please or register a new account.