SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Indexing a Trigger

Results 1 to 3 of 3
  1. #1

    Indexing a Trigger

    Hey all,
    I'm working on a mod, and I've been looking through the HoN's packages and interfaces but can't seem to find the definition / calling of any of the many indexed triggers to replicate. Also, searching for examples in XAML on google seems to bring up what looks like an entirely different syntax/language. Could anybody please point me where to look? I know how to make a normal trigger, but I need to make one with an index. LobbyPlayerInfo{index} is a good example.

    Thanks!
    -Ryan

  2. #2
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    AZ
    Posts
    233
    This isn't exactly what you're looking for, but you may find these links (and the general website) helpful to some things you might be trying to do:

    http://honwiki.net/wiki/UICmdList
    http://honwiki.net/wiki/UITriggerList
    http://honwiki.net/wiki/CmdList
    http://honwiki.net/wiki/FunctionList

    I bet there are more pages/sections on there now, but those are ones that I have saved at the moment. Honestly, you will find these sections more helpful than google. Google always thinks you mean "xml" or some other scripting/programming language and you wind up spending an hour searching through google's results when you can much more efficiently spend an hour doing trial/error, reverse-engineering code, looking for examples in previous code, or searching the honwiki.

    Meh...

  3. #3
    You can do this:

    Code:
    
    <template name="example_trigger_template">
    
    
    <trigger name="ExampleTrigger{index}">
    </template>
    And then:

    Code:
    <instance name="example_trigger_template" index="0"/>
    <instance name="example_trigger_template" index="1"/>
    <instance name="example_trigger_template" index="2"/>
    <instance name="example_trigger_template" index="3"/>
    <instance name="example_trigger_template" index="4"/>
    And so on. This is how the premade triggers work (such as LobbyPlayerInfo{index}).

Posting Permissions

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