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. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  4. Travel to distant realms and encounter scenes unknown to the common folk. The Greatest of Adventures is upon us with the 8th Cinematic Contest. Join in on a fun ride.
    Dismiss Notice
  5. The 18th Icon Contest is ON! Choose any ingame unit and give him/her Hero abilities. Good luck to all.
    Dismiss Notice
  6. Contestants are to create a scene set in the Stone Age. Come and see what you can come up with. We wish you the best of luck!
    Dismiss Notice
  7. Colour outside the lines! Techtree Contest #13 is a go. The contest is optionally paired.
    Dismiss Notice
  8. Greetings cerebrates, our Swarm needs new spawners that will have numerous children. Join the HIVE's 31st Modeling Contest - Spawners and Spawned! The contest is optionally paired.
    Dismiss Notice
  9. 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.

A ranged and a melee atk.

Discussion in 'World Editor Help Zone' started by CursedKnight, Aug 10, 2007.

  1. YoshiRyu

    YoshiRyu

    Joined:
    Jun 26, 2007
    Messages:
    686
    Resources:
    0
    Resources:
    0
    your's isn't proper:

    place your rifleman between 2 close archers
    and your rifleman will "patrol" between the 2 archers...
    (and he want a melee attack, not a damage field)

    the morph "change current weapon" is better i think
     
  2. -=Emergenzy=-

    -=Emergenzy=-

    Joined:
    Jul 2, 2004
    Messages:
    471
    Resources:
    20
    Models:
    20
    Resources:
    20
    You can create it someway like this:

    Event:
    Unit is attacked

    Condition:
    If PositionOfUnit(AttackingUnit) not grather than PositionOfUnit(AttackedUnit)+100

    Action:
    UnitAddAbility("Chaos")

    I dont have WE open right now. But I hope you understand my idea.
    "Chaos" is an ability that morph the unit into another unit.
     
  3. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,380
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    Ok, I was trying make a simple trigger, which then did not result as a simple, I have quite much problem with it. First of all, ignore that player group action, I just did not manage to get it work, so I went the complicated way, the for loop. If somebody could tell me the reason, I will appreciate it.

    The prerequisites are two units, the ranged and the melee one, and two abilities based on chaos. First it has new unit type 'rifleman(melee)' and the second 'rifleman(ranged)'.

    I think that there could be some memory leaks as the game lagged a little, but this could be possible also because having a lot of programs opened.

    • Melee
      • Events
        • Unit - A unit Is attacked
      • Conditions
        • (Unit-type of (Attacked unit)) Equal to Rifleman Elite (ranged)
        • (Distance between (Position of (Attacking unit)) and (Position of (Attacked unit))) Less than or equal to 250.00
      • Actions
        • Custom script: local integer udg_count=1
        • Unit - Add Chaos (Rifleman Melee) to (Attacked unit)
        • Custom script: loop
        • Custom script: exitwhen udg_count==0
        • Set count = 0
        • Player Group - Pick every player in (All enemies of (Owner of (Attacked unit))) and do (Set count = (Number of units in (Units in (Region centered at (Position of (Attacked unit)) with size (400.00, 400.00)) owned by (Picked player))))
        • For each (Integer A) from 1 to 12, do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Player((Integer A))) is an enemy of (Owner of (Attacked unit))) Equal to True
              • Then - Actions
                • Set count = (count + (Number of units in (Units in (Region centered at (Position of (Attacked unit)) with size (400.00, 400.00)) owned by (Player((Integer A))))))
              • Else - Actions
        • Wait 1.00 seconds
        • Custom script: endloop
        • Unit - Add Chaos (Rifleman Ranged) to (Attacked unit)
     
  4. Deathclaw24

    Deathclaw24

    Joined:
    May 3, 2006
    Messages:
    81
    Resources:
    2
    Icons:
    2
    Resources:
    2
    No it works fine (I tweaked my trigger a bit to make it work), I've created a map already with it working, after meleeing you can move away or your guy will keep meleeing, it knocksback the enemies and does good damage and slows their movement and attack for a short duration (just an added effect I like so you could run up to ranged units and give em a good bashin and run by)
     
  5. Deathclaw24

    Deathclaw24

    Joined:
    May 3, 2006
    Messages:
    81
    Resources:
    2
    Icons:
    2
    Resources:
    2
    I actually posted the map in the spells section but it still needs to be checked out. It's in the pending spell section I suggest you to check it out!!!
     
  6. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,380
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    But I saw that you use a sort of 'artificial' attack, totally different than my system.
     
  7. Ghost765

    Ghost765

    Joined:
    Jun 23, 2007
    Messages:
    3,162
    Resources:
    1
    Maps:
    1
    Resources:
    1
    can u guys make this a bit simpler?
     
  8. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    hey if i use the morph spell idea, and my unit is a hero, would the experiences and items be saved?
     
  9. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    i mean do i have to make separae triggers to save them?
     
  10. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    For Mecheon triggers, what does 'chaos' actually meant to do? Is it the same chaos in -=Emergenzy=-'s idea? or is it based upon the chaos in W3?
     
  11. Deathclaw24

    Deathclaw24

    Joined:
    May 3, 2006
    Messages:
    81
    Resources:
    2
    Icons:
    2
    Resources:
    2
    Go into spells, pending spells and look for ranged-melee by me.
     
  12. Mechanical Man

    Mechanical Man

    Joined:
    Jan 18, 2005
    Messages:
    5,380
    Resources:
    39
    Models:
    30
    Icons:
    3
    Packs:
    1
    Maps:
    4
    Tutorials:
    1
    Resources:
    39
    What do you mean CursedKnight? Mecheon only warned a guy not to multiple post (seems he have to warn you, too), he did not post any triggers.
     
  13. CursedKnight

    CursedKnight

    Joined:
    Aug 2, 2006
    Messages:
    19
    Resources:
    0
    Resources:
    0
    i thought you would've said that...sorry i was looking through rli fast and saw the wron name ...