Author Topic: Saying a number and turning it into a varible?  (Read 3270 times)

Bumble B

  • Jr. Member
  • **
  • Posts: 64
    • Bumble B Gaming
Saying a number and turning it into a varible?
« on: March 23, 2018, 02:35:47 AM »
Well I'm here again with something small for the HiVE mind of VA

I want to make a command to add numbers together.

Basically I want to say "Mission Value 2345345" and the value gets added to a variable, when i say the command again it adds it to the previous saved value so I can get a running total.

I've come up with this as a basic script but it seems that VA has trouble with the numbers I'm saying

Code: [Select]
Set decimal [{LASTSPOKENCMD}] to [{LASTSPOKENCMD}] plus [>BEE Mission Value] (round to 0 decimal places) (save value to profile)
Write '[Yellow] Mission Value: {DEC:>BEE Mission Value}cr' to log
Say, 'Current Mission Value {DEC:>BEE Mission Value} credits'

Thanks for any help

boo yah ö7

--
CMDR Bumble B ö7
ASUS P6TD Deluxe, Intel i7 960 @ 3.2GHz, 12Gb G.Skill, Windows 7 SP1 (64bit), ASUS Geforce GTX 970 Strix (4Gb), ThrustMaster T-Flight HOTAS X, Cosair Void RGB USB Gaming Headset, TrackIR, EDDI, Voice Attack, ED Engineer

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Saying a number and turning it into a varible?
« Reply #1 on: March 23, 2018, 10:45:31 AM »
What is your "When I say :" string? Are the numbers predefined using dynamic command sections, or are you using wildcards for dictation?