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 haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Rubbed the right way, the genie is out of its lamp! The 12th Concept Art Contest Results have been announced.
    Dismiss Notice
  4. Race against the odds and Reforge, Don't Refund. The 14th Techtree Contest has begun!
    Dismiss Notice
  5. 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.

Left/Right Click Cast

Discussion in 'World Editor Help Zone' started by neo_sluf, Feb 15, 2014.

  1. neo_sluf

    neo_sluf

    Joined:
    Feb 5, 2012
    Messages:
    1,430
    Resources:
    5
    Maps:
    5
    Resources:
    5
    I am asking which is better auto attack or not..

    Well someone say it is better if you can use Left/Right Click without using any keys in the keyboard..

    Like you press Left key then the unit will cast thunderclap..


    IS THIS POSSIBLE? IF YES HOW?..
     
  2. DysfunctionaI

    DysfunctionaI

    Joined:
    Mar 6, 2006
    Messages:
    281
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Right Click (easier one):

    Event -
    A unit is issued an order targeting a point
    Action -
    Do whatever you want


    Left Click

    There might be a system for this, but I've seen it in maps before and I'm almost positive this is how it works.

    You need a periodic trigger to Force UI Key, where the key is the hotkey for a targeting dummy spell, like Channel. The result is, your mouse is constantly targeting. Then you make another trigger just like for catching Right Click:

    Event -
    A unit is issued an order targeting a point
    Condition -
    Issued order equal to Channel
    Action -
    Do whatever you want
     
  3. neo_sluf

    neo_sluf

    Joined:
    Feb 5, 2012
    Messages:
    1,430
    Resources:
    5
    Maps:
    5
    Resources:
    5
    So if i use this it will not allow to use RIGHT CLICK TO MOVE right?..

    Also i did not understand the left click..
     
  4. DysfunctionaI

    DysfunctionaI

    Joined:
    Mar 6, 2006
    Messages:
    281
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Well yeah. You can't have Right Click act as a hotkey and still make it able to move at the same time. Although you could toggle the feature on and off.

    For Left Click:

    What happens when you press the M hotkey on a unit? Your mouse cursor turns into a crosshair and you can left click to tell the unit where to Move.

    You can use that to catch Left Click events by forcing the player to constantly press the M key, so his mouse is always a crosshair. Then, whenever he presses Left Click, you can catch the "Move" order. The action (in GUI) to force a hotkey is "Game - Force UI Key".

    You don't want to use Move though, you want to use something that has no effect, like the Channel ability.
     
  5. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,979
    Resources:
    17
    Spells:
    17
    Resources:
    17
    Here's a test map.

    I used Unit Selection event to go with the Left-click event to cast the ability.

    The basic mechanic is, to activate this system, all you need to do is select a unit twice.

    The first selection is where you would select the unit, then do whatever you want with the unit, move/heal/sleep/etc.

    The second selection is where you activate ability.
     

    Attached Files:

  6. neo_sluf

    neo_sluf

    Joined:
    Feb 5, 2012
    Messages:
    1,430
    Resources:
    5
    Maps:
    5
    Resources:
    5
    Dys thanks for clear explanation.. +rep

    defskull thanks for the awesome testmap.. +rep..

    But this problem is not solved yet.. i will ask more as i discover about this feature..

    This feature will be like the Diablo Left and Right cast..


    EDIT: Hey defskull how about Shockwave?... You will cast Shockwave after left clicking the ground?..
     
  7. defskull

    defskull

    Joined:
    Mar 27, 2008
    Messages:
    7,979
    Resources:
    17
    Spells:
    17
    Resources:
    17
    That's the problem though about using Unit Selection, you must choose a unit @@

    I don't play Diablo, can you explain more about the mechanics of this system ?

    Give examples of 3 spells type: Instant / Target-unit / Target-point

    How would you execute these spells in Diablo ?
     
  8. neo_sluf

    neo_sluf

    Joined:
    Feb 5, 2012
    Messages:
    1,430
    Resources:
    5
    Maps:
    5
    Resources:
    5
    Ok in diablo each hero has six abilities..

    Hotkeys 1,2,3,4 and Left and Right Click...

    Target Point..

    When you click Left mouse button on the ground and your Left Click spell is target point then you will cast the spell

    INSTANT

    When you click Left mouse button and your Left Click spell is instant then you will cast the spell without targeting the ground.. but YOU DON'T NEED TO CLICK THE CHARACTER JUST TO CAST INSTANT CAST SPELL.. anywhere you click or anything does not matter..

    Same as the right click..