Author Topic: Plugin Command "What I Say" How Change Words While Running  (Read 2817 times)

CrossWiseRanger

  • Newbie
  • *
  • Posts: 13
Plugin Command "What I Say" How Change Words While Running
« on: October 23, 2020, 09:24:41 AM »
Seeking how to load / reload a command with different "What I Say" words while VA running.

Example:  "WIS" originally "*how*; *now*"  changed to "*brown*; *cow*".

1.  Can this be done directly by changing the command's "WIS" variable?

2.  If #1 is no, could it be done with profile switching?  Perhaps change a profile not loaded and then make active.

3.  Other method?

Or, does VA have to be restarted to reload WIS?

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: Plugin Command "What I Say" How Change Words While Running
« Reply #1 on: October 23, 2020, 09:30:49 AM »
The "When I say" field can contain variables, though they are only parsed when the profile loads. Profile switching is one method of accomplishing a reload, however the "Reset Active Profile" action is the more efficient option.

Plugins/inline functions cannot directly call these functions, however you can execute a command that in turn does it for you.


Note that this also means that when a profile is loaded initially, any variables whose value you may try to retrieve using tokens in the "When I say" field will not have been set yet, therefore the profile must be reset at least once in order for your command to function as intended.