Search results

  1. staind25

    Handle of variable unit?

    I'm new to hashtables...was wondering if there's a way to reference a variable unit in the following function: Hashtable - Save 0.00 as 0 of (Key (MyUnit)) in MyTable Is there a way to get the MyUnit variable in there? There doesn't seem to be an option to use unit variables here. I can't just...
  2. staind25

    How to save only a portion of your map (e.g. Triggers)?

    I have a map with a large number of doodads so it takes way longer than it should to save my map when all I've done is edited the triggers. 90% of my edits at this point are trigger-related. Is there any way I can tell the world editor to only overwrite the triggers, and not everything else...
  3. staind25

    Event - Player X(?) types a chat message

    Is there a way to make it so that the event "Player types a chat message" can be a variable player? That way, I'd be able to do the same actions regardless of what player it was, and it would make it so I wouldn't have to copy/paste the event for 10 players (So tedious!!). I've tried...
  4. staind25

    Fog of War suddenly turning back on?

    While playing my map, fog of war will randomly turn on at some point. I have it disabled in Map Initialization. Here are the relevant actions to visibility: Actions Visibility - Disable fog of war Visibility - Disable black mask Melee Game - Use melee time of day (for all players) Any...
  5. staind25

    How to make unit avoid snow?

    I have a custom unit based off of a Footman that I want to avoid specific tiles. The reason being, I have a path drawn for it, and when I order it to "attack-move", I want it to follow that path. It would really cut down on the triggering (Map is large and the unit's going across the map). Is...
  6. staind25

    Make unit follow closer?

    I have a trigger where I order a unit to follow another unit...but I need the unit to follow closer than it does (It does follow, but stops way too soon). Is there a way to do this? Thanks!
  7. staind25

    How to make NPC hero cast custom abilities?

    I have a few bosses on my map that are controlled by computers. As of right now, the only abilities they use are the ones that don't require triggering. They don't use the abilities that are based off of Channel. How can I make them use those abilities too? Thanks!
  8. staind25

    "Cone" type attack

    I'm using triggers to try to create a "cone" of damage in front of the caster, much like "Cone of Cold" in World of Warcraft (I don't think such a thing exists in WC3...if it does, please let me know). Anyways, it's pretty easy to cause damage in a rectangular region, but how do I go about...
  9. staind25

    How to set black mask over areas without terrain?

    I'm sure this is really obvious, and I did do a bit of searching, but couldn't find it. Anyways, I'd like to be able to divide my map into "sections", in a way. When a unit gets teleported to another section, they shouldn't be able to see the other surrounding sections...it should be black...
  10. staind25

    Why does map size have to be a multiple of 32?

    I did some searching for the answer but couldn't find it. Just curious, because it's...rather limiting, haha. And...is there any way around this? Sometimes I want to increase the size of a map but only a little bit, not to the next multiple of 32... Thanks.
  11. staind25

    How to make a unit non-aggroable?

    I need to make it so that this specific unit isn't auto-attacked by its surrounding enemy units. However, this unit also needs to be targetable by a specific spell. The spell is based off of Channel, if that's relevant. I've tried making it so that it's "Targeted as..." Suicidal (Something...
  12. staind25

    How to use TimerUtils?

    This system was recommended to me and it's great, but I don't know JASS, so I'm struggling to get it working. I have it implemented and everything, but I'm not sure what I need to do from here. In the comments, the author says I can use: //* set t=NewTimer() : Get a timer (alternative...
  13. staind25

    How to stop a timer? (JASS)

    I did some searching and found that you can only do this in JASS, but even the JASS code didn't seem to work. Here's what I have there: Custom script: call DestroyTimer( udg_GYTimer[5] ) I don't know JASS, so did I enter something wrong in there? It's array #5 in the GYTimer variable...
  14. staind25

    How to make a unit-target Silence?

    I need a spell that silences a target, but only ONE target. Can't be AoE. Triggers are fine. Object editor is preferable, but if triggers are necessary, that's fine too. I've done some looking around and I just have no idea how I'd go about doing this...any ideas? Thanks!
  15. staind25

    Object Editor issue with Life Drain

    All I'm trying to do is make Life Drain last 5 seconds, and for EACH SECOND, drain 108 health. The object editor has this in there, but it doesn't do what it says it does. Here are the relevant data fields: Data - Drain Interval (seconds): 1.00 Data - Hit Points Drained: 540.00 Data -...
  16. staind25

    Do sounds leak?

    I was looking at one of the triggers from another map, and I saw this: Sound - Play MageFrostNovaCast <gen> at 100.00% volume, located at (Position of (Triggering unit)) with Z offset 0.00 Custom script: set bj_wantDestroyGroup = true Is the custom script necessary? Does it remove a...
  17. staind25

    Question about "temporary" variables

    So I started using Temp variables for memory leak removal...my question is, do I need multiple instances of these variables, or as long as there are no waits in the trigger, can I use the same one each time? For example, if both of these triggers ran at the same time, would I have issues...
  18. staind25

    Unit not receiving buffs from spell?

    Okay I feel stupid for making a topic about this, especially since I have quite a few topics on the board now (Apologies), but this is bugging me and I don't know what I'm doing wrong. I have a spell based on Channel that is set to give 2 custom buffs. I cast the spell, and the unit receives...
  19. staind25

    Questions about Newgen

    So, as it turns out, I guess I need Newgen to create the spell I want to create. I've opened the program before but never really used it. I'm guessing that once I've used a feature unique to Newgen I can't go back to the normal WE on that map? Also, it sounds like Newgen has a tendency to...
  20. staind25

    Need a couple base spells...

    Can't find any good ones in the object editor but for some reason I feel like I'm just not seeing them. Perhaps someone knows a good base ability for these. 1. Healing over time. NOT auto-castable. Single target. 2. Damage absorption. The end-goal is to be able to cast a spell on a...
Top