SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Choosing which watcher

Results 1 to 3 of 3
  1. #1
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jun 2009
    Location
    Germany
    Posts
    796

    Choosing which watcher

    Hi,

    Code:
    watch="Watcher1{index} Watcher2{index}" ontrigger="If(param1 == 0 or param1 == {team}, SetText(param3));"
    SetText(param3) gives me now the parameter of the Watcher1. So it always takes the first watcher.
    How can I choose from which watcher the parameter should be taken?

    Tried it like this:
    Code:
    watch="Watcher1{index} Watcher2{index}" ontrigger="If(param1 == 0 or param1 == {team}, SetText(Watcher2.param3));"
    But it's not working

    Anyone knows?

    Thanks!
    www.HoNTracking.com

    - All Matches -
    - Associates -
    - Fight -
    - Tracking List -

  2. #2
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jun 2009
    Location
    Germany
    Posts
    796
    Does nobody know? I really need some help with this. Would be great, thanks!
    www.HoNTracking.com

    - All Matches -
    - Associates -
    - Fight -
    - Tracking List -

  3. #3
    The only way you can use two (or more) watchers at the same time (as far as I know).
    Code:
    watch="Watcher1 Watcher2"
    ontrigger="
        if(Watcher1, Echo(param));
        if(Watcher2, Echo(param));
    "
    Now if Watcher1 gets triggered, it uses param of Watcher1
    and if Watcher2 gets triggered it uses param of Watcher2.

    Though if you use a param in the ontrigger="" that one of the watchers does not have, the console gets spammed with errors.
    Last edited by Quzzap; 12-19-2010 at 08:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •