• 0

    posted a message on Break a for loop

    Hi, I'm not so sure about the translation of those two actions, anyway, does "skip remaining actions" and "general- interruption" both can break a for loop?

    thanks,

    Nite

    Posted in: Triggers
  • 0

    posted a message on Array in custom actions parameters

    Is it possible to use an array as a parameter in a custom action? I can't figure out how to do it, when you create a new parameter you can't mark it as an array.

    Thanks,

    Nite

    Posted in: Triggers
  • 0

    posted a message on WarEdit-like "Do nothing" action

    Well, i know it's not needed, it's just for make the code more readable. I'll go with the custom action.

    Thanks everyone!

    Posted in: Triggers
  • 0

    posted a message on WarEdit-like "Do nothing" action

    Hi, is there something like the waredit "do nothing" action into the galaxy editor? I used to use it in if-then-else statements when in the else section i didn't have any action.

    thanks,

    Nite

    Posted in: Triggers
  • 0

    posted a message on How to write this condition?

    @Berrala: Go

    thanks, works!

    Posted in: Triggers
  • 0

    posted a message on How to write this condition?

    Hi, i need some help on this trigger condition, i can't figure out how to write it :(

    i == 0 || i == 3 || i == 4 || (i >= 10 && i < 16)

    thanks!

    Posted in: Triggers
  • 0

    posted a message on WarEdit-like "bound" texture?

    Hi, I remember in the WarEdit (wc3 editor) there was, in the texture section, a "texture" called "bound" (at least that would be the english translation for the italian version...) that when used would black the terrain, like on the border of the map.

    Is there anything like that?

    thanks

    Posted in: Terrain
  • 0

    posted a message on Draw lines
    Quote from Eiviyn: Go

    Contrary to what it might look like, the terrain is actually just divided into blocks; just like wc3. The block are much smaller, but they are still there and with careful terraining you can quite happily create perfect straight lines.

    I can upload an example if you wish.

    yeah i know, but that will take ages since i have to draw like 20 map-long lines lol

    Anyway i figured out a fast way, you place the first point, hold the mouse button and move the screen with the keyboard arrows, if you hold the pointer you draw a line pretty fast :) Problem remains for diagonal lines.. i guess i ll have to draw point by point on the grid :(

    Posted in: Terrain
  • 0

    posted a message on Draw lines

    Is it possible to draw lines in some way using the paint brush?

    Im currently using roads to divide the map into different sections, but with a lot of roads on the map my computer terribly slow down when i try to edit the terrain.

    thanks,

    Nite

    Posted in: Terrain
  • 0

    posted a message on Change unit attack-speed @runtime

    Hi, is there a way to do it with triggers? I only found how to change the movement speed using triggers.

    thanks,

    Nite

    Posted in: Triggers
  • 0

    posted a message on How to get the size of an array?
    Quote from BumpInTheNight: Go

    Sorry, fraid most languages aren't as forgiving as java and this appears to be one of them. Believe me if you made the array and the actions that built it, you could figure out how big it is too.

    the problem is that i am not supposed to build the array, i just write my custom action which uses it. That action will not be map-related, and it is not said will be used only on my maps, so i cant say how big is the array. All i have to do is loop through it.

    The structure of the custom action is :

    -parameter : the array

    -actions : loop through the array and do something for each i.

    that's all, kind of basic stuff.

    I guess the only way is to add another int parameter with the size of the array.

    Thanks everyone by the way!

    Posted in: Triggers
  • 0

    posted a message on Change unit color by trigger @runtime

    bump

    Posted in: Triggers
  • 0

    posted a message on How to get the size of an array?

    I can't know the size of the array, that array is a parameter of my custom action. My action will use that array, received as parameter, to do something else. My question is how to loop through an array of which i don't know the size?

    I mean, that in Java would be arrayName.length, thats simply what i need to know.

    @wolflisk Actions General - For each integer i from 0 to 15 with increment 1, do (Actions

    The point of the problem is how to know that "15" without writing it, there must be some abstract way to get it.

    Thanks for help!

    Nite

    Posted in: Triggers
  • 0

    posted a message on How to get the size of an array?

    I have an array of "unit type", i use this array as a parameter into a trigger. Now, to loop through it i have to know its size, how can i obtain this information? (let's say i want set an int variable with the size of this array). (since the function im developing must be map-independent i can't just write the size of the array, changing it all the time).

    Thanks for help,

    Nite

    Posted in: Triggers
  • 0

    posted a message on Change unit color by trigger @runtime
    Quote from Talon0815: Go

    I guess "Send Actor message" is what you search for. Use "Set tint color" as Msg type and select your color and use "Actor from unit" as actor.

    Thanks for help, i just looked at this and it seems working. The problem is that i want to assign the color from an array of "color" previously declared, but with that trigger it seems i can only choose a color from its color chooser. Is there any way to do this?

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