• 0

    posted a message on Combinations with 5 values [PROBLEM, (Fail to understand)] (needs to be moved, should be Galaxy Scripting)

    EDIT: Woops, placed this in one section, can someone move to the galaxy section please?

        int i = ChestAmount * ShirtAmount * LegsAmount * BootsAmount * BeltAmount; //amount of itemsets
        int i1 = PowI(10,12); //aaa
        int i2 = PowI(10,10); //000 + bbb
        int i3 = PowI(10,7);  //000 + 000 + ccc
        int i4 = PowI(10,4);  //000 + 000 + 000 + ddd
        int i5 = PowI(10,1);  //000 + 000 + 000 + 000 + eee
        int firstdigit = PowI(10,16); //1 (+ aaa + bbb + ccc + ddd + eee <- EVERY COMBINATION NEEDED)
        int[999][6] IDs;
        int loop;
        int[6] loopception;
    //
        while(loop<ItemAmount){
            IDs[loop][1] = Items[loop].Chest*i1;
            IDs[loop][2] = Items[loop].Shirt*i2;
            IDs[loop][3] = Items[loop].Legs*i3;
            IDs[loop][4] = Items[loop].Boots*i4;
            IDs[loop][5] = Items[loop].Belt*i5;
            loop=loop+1;
            //@@@@@@@@@@DO STUFF HERE@@@@@@@@@@@@@@@
        }
    
        //@@@@@@@@OR HERE, PLANNING ON 5x LOOPCEPTION@@@@@@@
    //
        ItemSetAmounts = i;
    

    Yo guys, this is basically my setup for a combination system for 5 different values of "texture", I basicly know amount of combinations (i), the values aaa, bbb, ccc, ddd, eee, but i dont know how to mix them, you can read the @@@'s where it marks where i need to do the actions, I know amount of items (chest, shirt, legs, boots, belt), also "Items[x].????" is the struct i use, before i multiply them.

    In the firstdigit and - i explain what the result needs to be like.

    Not sure how im supposed to do this one, the first value of every item is 0, so i need basicly one for every combination, as i said i know amounts of combinations, but not how to mix them togheter in a loop, because just putting them in a loop with all combinations i'd doubt work, will the "loopception" work? Need Ideas. Kind of hard to explain what im going for, but basicly i need a combination of i1, i2, i3, i4, i5 + firstdigit. ALL POSSIBLE of the ones i have valued in the first loop.

    Kudos to anyone who helps. :)

    Posted in: Triggers
  • 0

    posted a message on I had a Starcraft dream...

    I dreamt that i was riding a bike, and then i fell, and then i woke up O:

    Posted in: General Chat
  • 0

    posted a message on My new map: iCJug

    Why not just call it KOTH, King of the hill, because that is what the map is, there are a few out already, "Map name" + KOTH Obs 1v1 etc..

    Posted in: Project Workplace
  • 0

    posted a message on Adding creator-only cheats to maps.

    You could just have like the ASCII signs and convert them

    liek lets see i want to check for Slaydon and slaydon only, it would check everyones name and if it is

    S = 115 * 100 + l = 108 * 100 + etc.... a = 97 y = 121 d = 100 o = 111 n = 110

    So it would run this script if your name in ASCII would be 115108097121100111110 And then check if 1 of them correct converted names match that number, because, you wont need all the ASCII, you just do it for your own letters

    Posted in: General Chat
  • 0

    posted a message on [Picture] Anyday on SC2Mapster

    I feel... insulted :(

    Posted in: Off-Topic
  • 0

    posted a message on Changing a dialog item's parent - possible?

    you create a dummy(D) item for C, and change them into the excact same as A got, and then you hide item A

    So you make D = A, D's parent is C, A's Parent is B, set the values from A into D, simple.

    Posted in: Galaxy Scripting
  • 0

    posted a message on Start listing things that annoy you about the editor and I'll give to Blizzard

    being able to make libraries with private functions, makes it so much easier.

    Posted in: General Chat
  • 0

    posted a message on SC2 Dialog Designer (Map) [Beta 3.5]

    I can translate it to norwegian, if no one else wants too. Its the names for the different options and tabs, rite?

    Posted in: Project Workplace
  • 0

    posted a message on Start listing things that annoy you about the editor and I'll give to Blizzard

    ^ that would be way to hax for map editors, then we could look up people automaticly, wouldnt work, but the playername, blizzard said that they would add it

    Posted in: General Chat
  • 0

    posted a message on Start listing things that annoy you about the editor and I'll give to Blizzard

    Make actor events and other actor stuff, and being able to grab more data out of the data editor and make your own library of actor events and grab states thats inside the data editor (Check flags, portraits, 2d sprite model)

    Posted in: General Chat
  • 0

    posted a message on Old frog got older

    Glad that aint me, i dont got window that close to my bed nor a teddy, neither do i think i own any yellow clothes, and i have a nose.

    thx btw.

    Posted in: Off-Topic
  • 0

    posted a message on Old frog got older

    maybe the cake is a pie

    Posted in: Off-Topic
  • 0

    posted a message on Old frog got older

    Thank you very much wraithchaser, im surprised that you are the last person in this thread that i like till now :D, and i just had another few slices of brown ship, i even had something brown for dinner (im not an anti racist) with this white thing, mashed something i believe its called.

    I hate you Khlox, you should try the F10 - N tactic, lets me win more often.

    Posted in: Off-Topic
  • 0

    posted a message on Old frog got older

    oh shi*, then what did i eat, what else is brown and chocolate looking?

    thx btw, and lifes good i guess

    Posted in: Off-Topic
  • 0

    posted a message on Old frog got older

    D:, i dont know if i should make a birthday thread, but its my b day, and ill do what i want :l

    Posted in: Off-Topic
  • To post a comment, please or register a new account.