• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

click counter possible?

Status
Not open for further replies.
Level 4
Joined
Dec 30, 2008
Messages
41
Im making a spell in which theres a timer...after the spell is casted how ever many clicks you can do in X ammount of time after casting the spell...will be the number of spirits that are raised and deal damage...the counter and stuff i can figure out..but how do i make a trigger that counts the clicks...
 
Level 4
Joined
Dec 30, 2008
Messages
41
i didnt plan to...i just wanted it to once they click the spell they have X ammount of seconds to click as fast as they can
also yes there can be more than 1 of that hero...so ill use 2 diffrent varriables
but if thats the only way to do it ..thats fine
and no i want the hero to pause
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
i didnt plan to...i just wanted it to once they click the spell they have X ammount of seconds to click as fast as they can
also yes there can be more than 1 of that hero...so ill use 2 diffrent varriables
but if thats the only way to do it ..thats fine
and no i want the hero to pause
you must have a unit selected and controlable,is is fine to select a dummy unit?

or maybe just use ESC event ...

if it is fine to make unit paused (with icons visible) i can do it now

i will tell u want you must do,if ur not able to do it,you will have to wait until tomorrow so i can send u the trigger

anyway it goes like this

use event
unit is issued an order targeting a point
conditions....
set custom value of triggering unit to custom value of triggering unit +1
start timer STEP 2 ... 0,00 seconds
set unit = ordered unit

use event
timer STEP 2 expires
order ordered unit to stop

than when you spell is finished put custom value back to 0
order ordered unit to stop
 
Level 4
Joined
Dec 30, 2008
Messages
41
yea i was talken about left clicks lol this is what i have for the counter and stuff so far. like the base

first one so far...and yes i know its not mui

  • LEtsseeee
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Click N kill
    • Actions
      • Set Caster = (Casting unit)
      • Set Areaaroundhero = (Region centered at (Position of Caster) with size (500.00, 500.00))
      • Trigger - Turn on Clicks <gen>
      • Wait 5.00 seconds
      • Trigger - Turn off Clicks <gen>
      • Unit - Create NumberOfclicks Footman for (Owner of Caster) at (Random point in Areaaroundhero) facing Default building facing degrees
      • Set NumberOfclicks = 0
      • Floating Text - Destroy (Last created floating text)

second:

  • Actions
    • Set currentposofcas = (Position of Caster)
    • Set NumberOfclicks = (NumberOfclicks + 1)
    • Floating Text - Destroy (Last created floating text)
    • Floating Text - Create floating text that reads (String(NumberOfclicks)) at currentposofcas with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
but i still have no event...

p.s i know i have alot of fixing to do..also i knoW NOTHING about jass so i need a gui or mui form of this trigger...if its possible..please and thanks...or ill take a guide if there is one for gui

By the wAY I GREATLY APPRECIATE UR ATTEMPTS TO HELP AND EITHER WAY I AM GIVING U REP but thanks anyways if u cant!
 
Last edited:
Level 14
Joined
Mar 4, 2009
Messages
1,156
it could be only done in jass or i gui in wich you force a player to press a key for something that targets a point

like for building a Castle

force player to press B - for Building
force player to press C - for Castle

btw, this can be used for any ability that has a hotkey....
 
Status
Not open for further replies.
Top