Recent content by Prozix

  1. Prozix

    Timer-Dialog Issues..

    Maybe.. just maybe you are trying to create the dialog while the map is initializing. Waiting 0.01 second or so before creating the dialog might solve your problem.
  2. Prozix

    Cone Filter?

    that is correct. The variable in your function is also a copy, not of the group but of the group handle. If you assign the handle of g1 to g2 for example they will both point to the same memory. What you have to do is create a second group (g2 = CreateGroup()) and add every unit from g1 to...
  3. Prozix

    Cone Filter?

    that is because a group is actually a handle to a place in memory. If you pass the handle to another function it can change the memory using the handle. An integer for example is a type that is usually 4 bytes in size, just as big as a handle. Unlike groups, the integer is copied to the...
  4. Prozix

    Cone Filter?

    I'm sorry but I don't understand what you are saying. In the CountGroup function I posted I use a global bj variable to count because the forgroup function can't take a function with arguments. I can't do this for instance function CountIncr takes integer i returns integer return i +...
  5. Prozix

    Cone Filter?

    I created a map to test your code and it compiled perfectly :) When I cast the spell it only counts the units once, I'm not sure if that is your problem but it is caused by your CountGroup function I have rewritten it so that it doesn't remove units from the group because I guess you need...
  6. Prozix

    Cone Filter?

    we can't solve it with the code you've provided
  7. Prozix

    Cone Filter?

    compare your code or post it then :P
  8. Prozix

    Cone Filter?

    library Group globals group GROUP = CreateGroup() endglobals endlibrary library ConeFilter initializer init requires Group struct ConeSector real x real y real radiusSquared real facing real halfangle real x1 real y1 real x2 real y2...
  9. Prozix

    Cone Filter?

    It probably doesn't display anything because there is something wrong with your CountGroup function. Can you post the complete code that fires the functions and the functions themselves you have now?
  10. Prozix

    Cone Filter?

    Look at this local group g = CreateGroup() //and this set g = whichGroup It's not your problem :P but it doesn't make sense to create a group, then assign the group handle to another group. You should read the Leakless groups tutorial from jesus4life and rewrite your function. It...
  11. Prozix

    unit variables and 'ReviveHero'

    I'm not sure but I think heroes always keep their handles, unless you remove them from te game. Units will disappear from the game after some time, they won't be reviveable I think so their handles will point to something unexpected after a while :)
  12. Prozix

    Snippet Building Builder

    Hahah, if you download the map there is an example trigger: fictional example It tries to do what you said, I discovered that having textmacro's run other textmacro's wasn't possible at this time. I solved it by making a base unit that has most stats set correctly, and then base other units...
  13. Prozix

    Snippet Building Builder

    Well, I personally hate searching for values, waiting untill I've got a copy of a unit and doing the same stuff over and over again. So if I wan't to create a map which has about 500 upgradeable buildings, I'd want to use something like this. For small amounts of buildings that aren't similar...
  14. Prozix

    Snippet Building Builder

    Should I write that someone who wants to use this should copy this //! externalblock extension=lua ObjectMerger $FILENAME$ ///! runtextmacro MakeBuilding("BASE_ID", "NEW_ID") //! runtextmacro MakeBuilding("hhou", "hH01") ///! runtextmacro MakeChangeArt("BTNX", "BTNY", "GROUND_TEX"...
  15. Prozix

    Snippet Building Builder

    Hi there, it's me again. This time I'm on the forums because I'd like to save you some time. The next snippet allows you to create buildings very easily and rapidly. It requires: Newgen which should come with ObjectMerger. //---HEADER--- // This file was made by Prozix. // It...
Top