Author Topic: Doing basic math  (Read 95 times)

Jericho_fever

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

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1570
  • RTFM
Re: Doing basic math
« Reply #1 on: August 28, 2018, 04: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, 05:54:27 am by Pfeil »

Jericho_fever

  • Newbie
  • *
  • Posts: 5
Re: Doing basic math
« Reply #2 on: August 28, 2018, 05:52:35 pm »
thank you