Search results

  1. E

    No response to KillUnit()

    Hi again. I've been annoyed of this trigger some time. The problem is that the Triggering Unit doesn't respond to it. At the beginning of the trigger, I declare the local unit variable u, and set it as "GetTriggerUnit() At the end of the trigger, I first tries to get the unit to stop...
  2. E

    NewGen makes simple function declaration, complicated. Help me!

    Alright. I recently started using NewGen, wrote this trigger and got two errors: function Trig_Flytta_Torn_Conditions takes nothing returns boolean return ( GetUnitTypeId(GetOrderedUnit()) == 'emtg' ) endfunction function Trig_Flytta_Torn_Actions takes nothing returns nothing...
  3. E

    Help: Hide unexplored terrain on minimap

    I need to, like in the original campaigns, hide everything on the minimap that's not explored. Usually you see terrain types, formations and such. I need to get it all black until you get there. How do I do it? ~Thanks
  4. E

    Can I use a player's current camera view as a region?

    I got a genial groundbreaking mindmelting idea a few nights ago, and got pretty disappointed when I realized that "Current Camera Bounds" wasn't the region which a selected player was currently viewing. So is it, with any hacks or mods, possible to get the current players camera view and use it...
  5. E

    Can I cancel a unit's training through triggers?

    I just realized that cancelling a training doesn't give an order. So, is there any way to do this through triggers? I can remove it when it has trained, and I can remove and recreate the building, but can I cancel a single unit?
  6. E

    Controlling Auto-cast targets, one way or another

    I have unit a, which has an autocast ability which only has effect on units of type b and c. What should I do to make unit a only cast it on b and c? I tried to make b and c suicidal, and add "suicidal" to the ability's allowed targets. But then, b and c couldn't be loaded into transports, even...
  7. E

    Group Picking Problem

    Ok, this trigger is supposed to distribute 100 lumber to players, different amounts depending on how many unit the player has in a specific region. For example, player 1 has 3 units, player 2 has 2, and player 3 has 5. Since player 1 has 30% of the units in the region, he gets 30 lumber, player...
  8. E

    System Random Quest Generator

    In short: This "system" allows you to create a list of quests, assign it different difficulties and let players get quests for the difficulties they wish. I made it for a guy in this thread, and just wanted to know what you others think about it. I can say that it's a bit...
  9. E

    Problems with loop and unit group

    Ok, I want every unit of a special type have an ID number and put it in its costum value when it is created. Player 1 has units with ID 1-5, player 2 with 6-10 and so on. This trigger is supposed to find a ID number that's not taken by a living unit (I use the TankAlive boolean variable to...
  10. E

    Random Unit From Unit Group, how?

    How do I do to trigger an action in JASS for one random unit in a unit group?
  11. E

    Tracking number of units in a transport

    Is there a way to count or track how many units are inside a specific transport unit? Or even how many units of a specific type? The best way I have found this late, is creating 8 dummy units, order them all to get into the transport, and then check how many of them are still outside it. 8 -...
  12. E

    Invalid argument type (rect), what it this?

    Invalid argument type (rect), what should I do? This line: call TriggerAddCondition( gg_trg_Rescue_Quest_Start, Condition( function Trig_Rescue Quest_Start_Conditions ) ) keeps getting a compile error message I dont understand; "Invalid argument type (rect)". What does it mean, and what...
  13. E

    Keeping information over campaign chapters

    Hi. Is it possible to save information from one map in a champaign, and use it in a later map/chapter/scenario? Such as heroes, dialouge answers, resourses, and such?
  14. E

    No experience for creep kills.

    Hi. There is an area in my map with constant battle: an allied team is fighting against respawning groups of murloc-based monsters (yes, I'm making my first bigger map). The problem is, that the player's heroes is getting huge amounts of exp for this. So, how do I make those creeps not give any...
Top