Timed variable for game abilities with cool downs, global vairables, and strings...some suggesitons

202 views
Skip to first unread message

Aduna Saraday

unread,
Sep 17, 2014, 3:12:09 AM9/17/14
to voice...@googlegroups.com
So I'm playing with the latest Voice attack beta, and I'm loving it.  I can't speak highly enough of it, and I absolutely think it's a great value for the price.  Just had to say it.

That said, I do have a feature suggestion that might be easy to add, and could be exceptionally cool (no pun).  Many games have abilities with "cool downs".  Execute said action, then you have to wait, say, 10 seconds, or a minute, before you can execute it again.  A very, very common feature.  Just about any MMO comes to mind.

It'd be pretty cool if when you assigned a variable in voice attack, you could also assign a timer to it.  For example, Ability1 = 1 for 30 seconds, then Ability1 = 0.  In this way, the actual voice command that sets Ability1 can "complete" setting it's variable, i.e.

Voice command: Ability 1
   if null Ability1=nul, set Ability=0
  Condition if Ability1 = 0
       Activate Cooldown
       Ability1=1 for 30 seconds
  End
  Condition if Ability1=1
      Say "Ability is still disabled, you must wait {Ability1Time}
  End

...something like that.

In this way, you can make your voice commands "aware" of abilities that may be on cool down timers, and smart enough to respond intelligently (a super neat feature).

My other suggestion, I might have missed this, would be to able to globally initialize all variables or a sub-set of variables in the profile itself.

I can do this within a command, such as the example above.  However, if multiple commands use the same variable it's a bit repetitive, and could be a pain to maintain if you use the same variable in many places and you at some point decide to change it's init value.  Right now I have it in a command that runs to lacun my game from windows.  But to be safe, I also have to add them to commands that use them just case I don't launch the game from voice attack/voice attack crashes/I have to restart voice attack, etc.

If variables could be set at the profile level, then when a command runs, if it encounters an uninitialized variable, it will be set to the specified default value saved in the profile generically, before it's run through a condition.  Easy as pie.  Just  a thought. :)

Aduna Saraday

unread,
Sep 17, 2014, 3:17:22 AM9/17/14
to voice...@googlegroups.com
I mean tot add this one more related suggestion which I'm sure has already been mentioned, maybe it's already a feature and I haven't figured it out yet?

You can set a string to become a token.  It would probably be pretty easy, and super cool, if you could then under the "Press a Key" Dialog specify this token.  This could be useful for string values that might be used across commands that could change.  One immediate use I had was when I launch my application, I have it automatically type in my password to log in.  It'd be great if this was a token, as programming this manually is cumbersome.

However, you could also use it to do text reply's in MMOs in creative ways using conditionals, etc.  Just seems to really open things up, potentially. 

Luca D

unread,
Sep 17, 2014, 4:13:48 AM9/17/14
to voice...@googlegroups.com
It will always be prone to some synchronization issues (you can never be sure that the game's timer is perfectly in line with a timer handled by a 3rd party application like VoiceAttack) but it's already doable right now with the help of a plugin... actually, I've already done it :-) so if you can wait a few hours that I get back to my home PC, i might give you something to toy with.

Regards


Il giorno mercoledì 17 settembre 2014 09:12:09 UTC+2, Aduna Saraday ha scritto:
So I'm playing with the latest Voice attack beta, and I'm loving it.  I can't speak highly enough of it, and I absolutely think it's a great value for the price.  Just had to say it.

That said, I do have a feature suggestion that might be easy to add, and could be exceptionally cool (no pun).  Many games have abilities with "cool downs".  Execute said action, then you have to wait, say, 10 seconds, or a minute, before you can execute it again.  A very, very common feature.  Just about any MMO comes to mind.

It'd be pretty cool if when you assigned a variable in voice attack, you could also assign a timer to it.  For example, Ability1 = 1 for 30 seconds, then Ability1 = 0.  In this way, the actual voice command that sets Ability1 can "complete" setting it's variable [CUT]

Luca D

unread,
Sep 17, 2014, 2:21:29 PM9/17/14
to voice...@googlegroups.com
Ok, I think I got what you here for the cooldowns.... have a look here:
https://groups.google.com/d/msg/voiceattack/uCOYwYzLfTI/Q-xbfM75pPEJ

Aduna Saraday

unread,
Sep 18, 2014, 4:19:55 AM9/18/14
to voice...@googlegroups.com
Very cool!  I am seriously impressed, and I will certainly give it a whirl. 

On a side note, I've had a lot of trouble finding really cool plug ins...do you have suggestions as to others like this? :)
Reply all
Reply to author
Forward
0 new messages