1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. 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.

[JASS] {idea} [vJass] (System) CustomAttack

Discussion in 'Triggers & Scripts' started by Anachron, Apr 19, 2010.

  1. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Wow, that looks stupid.
    My engine will trigger melee attack instantly,...
    You have to use my CustomMissile engine for it because I made it fit for the system.

    You'll see it'll be great.
     
  2. Furby

    Furby

    Joined:
    Feb 18, 2008
    Messages:
    69
    Resources:
    1
    Icons:
    1
    Resources:
    1
    Yep, but I didn't want to make system work like you are doing, but now when I see it here, it seems it will work very good, so now I'm up to it.
    Well, this one also triggers melee attacks instantly..
    I guess so. :wink:
     
  3. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Well, this will trigger an attack after animation: (And play the animation automatically)
    Code (vJASS):

    AttackOrder.create(attacker, target)
     

    Can it be any easier? (Every data is loaded automatically)

    You said you have an missile speed of 9999, and that is not instantly, but has a delay of the interval you check the missiles.

    It really will :)
     
  4. Furby

    Furby

    Joined:
    Feb 18, 2008
    Messages:
    69
    Resources:
    1
    Icons:
    1
    Resources:
    1
    I said ranged units have missile speed 99999 so I they damage unit (relatively) instantly and then I run my missile which has saved data about damage.

    For melee units it damages instantly.

    But whatever this is not important, why are we discussing it. :xxd:

    What else you need to add to the system before beta? :smile:
     
  5. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    I'll need to add AutoAttack and fix some stuff then I'm ready for the public beta.
     
  6. The Reborn Devil

    The Reborn Devil

    Joined:
    Dec 31, 2006
    Messages:
    1,325
    Resources:
    0
    Resources:
    0
    Nice :D

    Does it support that one tower "charges" another tower which again "charges" a third tower which attacks? It might be a bit complicated, but it would be awesome :D

    Example:
    (t == tower, - == laz00r, x == target)
    t-t-t-x
     
  7. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    You can do whatever you want, but you'll have to trigger the charge yourself... Basically you just link all towers with an lightning or so and then change the attack of one of the towers, which is the closest.
     
  8. supertoinkz

    supertoinkz

    Joined:
    Dec 29, 2008
    Messages:
    2,813
    Resources:
    25
    Models:
    15
    Icons:
    7
    Maps:
    1
    Tutorials:
    2
    Resources:
    25
    Prism tower eh?
     
  9. Viikuna

    Viikuna

    Joined:
    Aug 6, 2008
    Messages:
    430
    Resources:
    0
    Resources:
    0
    You can set your ranged attack to be instant in object editor, so it has no missile, nor missile speed.



    edit. Nevermind, you were talking about different thing. Just ignore me here pls.
     
  10. Cweener

    Cweener

    Joined:
    Oct 10, 2009
    Messages:
    1,440
    Resources:
    1
    Maps:
    1
    Resources:
    1
    so, when can we hope for a beta ?
    i could have sworn you said it was like a week ago or something :p
    sorry, but i really cannot wait for this system :D,
    but can you edit the description with all of it's capabilities? that would be helpful so people won't post suggestions that you have already implemented :p
     
  11. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Basically you can do everything. (It will be only a bit harder sometimes to get the way how to do it).

    About the beta: I don't know. CustomMissile is still improving with every version (CustomAttack is based on it) and I can't release CustomAttack with an old version of CustomMissile.
     
  12. Vosty

    Vosty

    Joined:
    Aug 31, 2008
    Messages:
    793
    Resources:
    0
    Resources:
    0
    This is the single greatest thing that I have ever seen.
    If you finish it, I will definely use it, for whatever map I make.
     
  13. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Yeah, I am thinking about CustomAttack beta being my last project, so I may stop mapping for at least a few years.
     
  14. Craka_J

    Craka_J

    Joined:
    Mar 25, 2004
    Messages:
    4,933
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Not sure if anyone else suggested this, but it's just an idea that popped into mind. What about having the unit taking damage or a crit damage play their death animation for a quick moment, but not fully playing the animation, so that it looks like they're getting hurt?
     
  15. YourNameHere

    YourNameHere

    Joined:
    Apr 29, 2007
    Messages:
    745
    Resources:
    4
    Maps:
    1
    Spells:
    2
    JASS:
    1
    Resources:
    4
    Doing that would play the dying unit sound everytime a unit is hit.
     
  16. Darkt3mpl3r

    Darkt3mpl3r

    Joined:
    Jan 6, 2006
    Messages:
    201
    Resources:
    1
    Spells:
    1
    Resources:
    1
    yeahz and then come back to wc3 that nobody actually uses.
     
  17. Berb

    Berb

    Joined:
    Jan 21, 2006
    Messages:
    2,539
    Resources:
    2
    JASS:
    2
    Resources:
    2
    Well I imagine it would only be on critical or "special" damage. This isn't actually a bad idea at all, but you'd have to play a very very small blip of the death animation so that you don't include any effects that may be included (like 0.1 seconds of the animation). This would also allow for the possibility of "attack recovery" like in Diablo II :D
     
  18. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    Well, I don't think this would be a bad idea at all.
    But still the sound problem seems annoying for me.
     
  19. Catch_ya

    Catch_ya

    Joined:
    May 21, 2009
    Messages:
    981
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Well, that is a great idea. Why haven't I thought of this idea? Lol d:
     
  20. Anachron

    Anachron

    Joined:
    Sep 9, 2007
    Messages:
    6,220
    Resources:
    66
    Icons:
    49
    Packs:
    2
    Tools:
    1
    Maps:
    3
    Spells:
    9
    Tutorials:
    1
    JASS:
    1
    Resources:
    66
    It's because you hate space themes, obviously.