Author Topic: Doing basic math  (Read 1416 times)

Jericho_fever

  • Newbie
  • *
  • Posts: 6
Doing basic math
« on: August 27, 2018, 07:35:55 PM »
How can I  set Variable1 to the sum of Variable2 plus Variable3

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Doing basic math
« Reply #1 on: August 28, 2018, 05:59:59 AM »
Two ways to do this:
Code: [Select]
Set integer [Variable2] value to 2
Set integer [Variable3] value to 3
Set integer [Variable1] value to the value of [Variable2]
Set integer [Variable1] to [Variable1] plus [Variable3]

Code: [Select]
Set integer [Variable2] value to 2
Set integer [Variable3] value to 3
Set integer [Variable1] value to the converted value of {EXP: {INT:Variable2} + {INT:Variable3}}


Press F1 while VoiceAttack has focus to open VoiceAttackHelp.pdf, which has more information on the {EXP:} token.
« Last Edit: August 28, 2018, 06:54:27 AM by Pfeil »

Jericho_fever

  • Newbie
  • *
  • Posts: 6
Re: Doing basic math
« Reply #2 on: August 28, 2018, 06:52:35 PM »
thank you