1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Timed Attacks

Discussion in 'Map Development' started by orcfan32, May 11, 2005.

  1. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    I am wondering how you time units like mortar teams to attack a point... I have experimented, but am having major problems. Maybe I'm just not looking hard enough, but I can't figure it out. Like on some escape maps when mortar teams\meat wagons attack grong and try to kill your runner. Any clue people? Thanks in advance.
     
  2. 131ueDragon

    131ueDragon

    Joined:
    Mar 25, 2005
    Messages:
    304
    Resources:
    0
    Resources:
    0
    You could always create a region, then set the mortal team movement to 0 so it doesnt move and make this sort of trigger.

    Event: Map Initialization
    Condition: None
    Action: Order Unit Mortal Team (Or whatever the unit is) to attack ground in the middle of region (The region you want to fire at)

    That should work. GOod luck
    -Blue
     
  3. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    I tried that but it won't damage the runners. Should I try meat wagons?
     
  4. Shadow_Wanderer

    Shadow_Wanderer

    Joined:
    May 6, 2005
    Messages:
    15
    Resources:
    0
    Resources:
    0
    Try going into the unit settings for the mortar team and increasing the AoE damage splash range and damage factor? (Factor 0.0 = no splash damage dealt in splash radius. Factor 1.0 = 100% splash damage dealt in splash radius. Factor 0.5 = 50%, etc.)
     
  5. 131ueDragon

    131ueDragon

    Joined:
    Mar 25, 2005
    Messages:
    304
    Resources:
    0
    Resources:
    0
    yea its probably because the splash damage isnt set high enough or wide enough. Mess around with that in the object editor. Good luck
    -Blue
     
  6. Minkorok

    Minkorok

    Joined:
    Jan 9, 2005
    Messages:
    108
    Resources:
    0
    Resources:
    0
    as far as timing them you can set a trigger to tell it to attack region after a certain time, kind of like:

    event
    (i leave blank and use another trigger, normally start of this area, to trigger this timer)
    condition
    (no condition... just doesnt make sense to me)
    action
    order unit in region1(//or unit variable if you have that set) to attack region1
    wait 1 second
    order unit in region2 to attack region2

    like that... i hope i explained it right :? lol

    but as far as damage yes that probably is the splash radius and splash dmg
     
  7. 131ueDragon

    131ueDragon

    Joined:
    Mar 25, 2005
    Messages:
    304
    Resources:
    0
    Resources:
    0
    minkork there is a problem with that trigger. Its unecessary. The cooldown time of the unit itself can be changed to make the cool down. Your process will just add extra triggers.
    -Blue
     
  8. Minkorok

    Minkorok

    Joined:
    Jan 9, 2005
    Messages:
    108
    Resources:
    0
    Resources:
    0
    then blue how would u trigger it?
    i see that as the easiest way to get it to work, and if you have multiple units of the same type firing at one or more areas at once... the cooldown wont work.
    i think you misunderstood the idea of my post.
    cooldown from firing tis the space between shots correct? then how would you cause 2 seperate units to fire one 2 different areas at different times?
    I've done it like that with no issues. if you have a better example please post it :) we could all learn a lil something :)
    (one fires, then a second fires, then cooldown causes first to fire again...)
     
  9. 131ueDragon

    131ueDragon

    Joined:
    Mar 25, 2005
    Messages:
    304
    Resources:
    0
    Resources:
    0
    right nvm. I thought u had the event as periodic event and telling the unit to attack every 1 sec. But I guess i misread it. Sry lol
    -Blue
     
  10. klovadis

    klovadis

    Joined:
    Jan 3, 2005
    Messages:
    92
    Resources:
    0
    Resources:
    0
    hmm I understand problem behind the problem you have, but I think you failed at another point. First your trigger:

    make a variable ("MortarCounter") which serves as a counter that repeatedly counts from .. well for example 0 to 7 and as soon as it reaches 8, it must be set to 0.

    do this by making a trigger with a periodic event (i.e. 0.50 seconds), the first action something like "Set MortarCounter = Mortarcounter + 1" and then "IF Mortarcounter >= 8 THEN Set Mortarcounter = 0 ELSE Do Nothing".

    this trigger will execute every 0.5 seconds, and theres this weird counter running in it. Why? Next line in the trigger:

    IF MortarCounter = 0 THEN Order Mortar1 to "_Attack Once_" Center of(MortarTargetRegion1)
    IF MortarCounter = 1 THEN Order Mortar2 to "_Attack Once_" Center of(MortarTargetRegion2)
    IF MortarCounter = 3 THEN Order Mortar3 to "_Attack Once_" Center of(MortarTargetRegion3)

    Get it? If the counter is 0, mortar1 will attack, 0.5 sec later, the counter is 1 and morter 2 will attack. 0.5 seconds later, the counter is 2, nothing will happen, 0.5 seconds later, the counter is 3 and the third mortar will attack! This would be a great solution, BUT:

    "Attack Once" doesnt exist for targeting a point. Doh. And if we attack an area, the mortars will keep attacking the point neglecting the order you gave them.

    Suggested solution: Make a spell, that looks like the mortar missile and which deals damage, (i.e. "Cluster Rockets" from the tinker, set cooldown for that spell to 0.10 and mana cost to 0 and replace the missile gfx). Now you can "Order MortarN to [Goblin-Tinker Cluster Rockets] [Center of Mortar1Region]".

    I hope you got it, pm me on finishing the map, good luck,

    klovadis
     
  11. orcfan32

    orcfan32

    Joined:
    Jul 3, 2004
    Messages:
    337
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    klovadis, that is too messy... I figired it out. I used the meat wagon and set its damage to 5000 - 5000 chaos, and set its cooldown and just made it so that at map initialization that they attack the point.
     
  12. klovadis

    klovadis

    Joined:
    Jan 3, 2005
    Messages:
    92
    Resources:
    0
    Resources:
    0
    well my solution is absolute precise and allows perfectly timed attacks ;) but if it seems to work with a simpler solution thats fine, too.

    note: it doesn't make ANY difference which unit you use, as long as it has splash damage and the damage area is properly calculated.

    klovadis
     
  13. Draqz

    Draqz

    Joined:
    Feb 15, 2005
    Messages:
    187
    Resources:
    4
    Maps:
    3
    Tutorials:
    1
    Resources:
    4
    you know, they have a built-in function called "for each integer A do multiple functions"

    set your regions into an array. make the trigger say from "1 to 7" and set the index to "intergerA" when you call the region. here is an exampl trigger:

    Event - //What ever you want
    Condition - //What ever you want
    Action - For each (Integer A) from 1 to 7, do (Actions)
    --Loop - Actions
    ----Unit - Order Mortar Team to Attack Ground (Center of YourRegions[(Integer A)]
    ----Wait 1.00 seconds //set this to however long between changing attacks you want


    All you have to do, is assign your regions to a number from 1 to 7 in an array durring map initialization. then this trigger will call that region in a sequence, form 1 to 7. hopethis helps = )