1. Join Texturing Contest #30 now in a legendary battle of mythological creatures!
    Dismiss Notice
  2. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice
  3. Melee Mapping Contest #3 - Results are out! Congratulate the winners and check plenty of new 4v4 melee maps designed for this competition!
    Dismiss Notice
  4. The winners of our cinematic soundtrack competition have been decided! Step by the Music Contest #11 - Results to check the entries and congratulate the winners!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

[Spell] Please need help for spells requirements!

Discussion in 'World Editor Help Zone' started by SouLost, Sep 16, 2016.

  1. SouLost

    SouLost

    Joined:
    Jun 27, 2016
    Messages:
    4
    Resources:
    0
    Resources:
    0
    Hi guys!
    6 month ago I have start make a map, now i have to make the version number 8 and in this version i want add some ''special'' ability....my map is like as LTA (Lordaeron The Aftermath) and in that game i have see some spells that require to be near a point to be casted.

    Example:
    The ability is ''Restore'', in map there is the Sunwell. ''Restore'' ability can cast also near to sunwell.

    How can i make this? If is possible not in JASS language, I'm not good with it.

    thanks in advance
     
  2. pOke

    pOke

    Joined:
    Mar 24, 2013
    Messages:
    1,067
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Put a requirement on the spell in the OE. Make it require a unit called something like, "Being close to Sunwell". This way when they hover it will say Requires being close to sunwell.

    Then detect when your unit is close enough to the sunwell and create the dummy for that player. When they go away kill that dummy.
     
  3. SouLost

    SouLost

    Joined:
    Jun 27, 2016
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I am speechless... It's really easy

    Thanks man!