Please don't give me links to heal aliases, I wanna do them myself.
ok, I type group, and wanna put the hp, maxHp and name into 3 arrays
my trigger is like:
^??????%s&%d{iMemberHp}/&%d{iMemberMaxHp}%shit,?????/?????move,?????/?????psp &%w{strMemberName}
and works fine for both (Head) and others.
Then the problem comes, what I wanna do is count up a variable and then toss it into the arrays. (That then should pop up in my statusbar). I do it like:
@iGroup = iGroup + 1
#NOOP %arrset( aGroupHp, @iGroup, @iMemberHp)
#NOOP %arrset( aGroupMaxHp, @iGroup, @iMemberMaxHp)
#NOOP %arrset( aGroupName, @iGroup, @strMemberName)
Yet, nothing is tossed into the arrays!
is it something silly that i have misunderstood? It works fine when I work with regular variables.
/Disoputlip
Making my heal aliases
-
- Sojourner
- Posts: 956
- Joined: Thu Feb 21, 2002 6:01 am
- Location: Copenhagen
Looks good to me.
You may be better off using "lists" (additem, delitem, etc) but arrays might do it for you.
You may not find as much help for arrays here, though, as it is still in only "beta" versions of zmud.
A few things to try (forgive me if I state anything overly obvious):
Make sure your iGroup variable is being properly intialized, and that you have used "#var varName %array(somedata)" to initialize all of the arrays. I don't believe zmud's arrays work without first creating a variable of the array type.
Regards,
Jorus
You may be better off using "lists" (additem, delitem, etc) but arrays might do it for you.
You may not find as much help for arrays here, though, as it is still in only "beta" versions of zmud.
A few things to try (forgive me if I state anything overly obvious):
Make sure your iGroup variable is being properly intialized, and that you have used "#var varName %array(somedata)" to initialize all of the arrays. I don't believe zmud's arrays work without first creating a variable of the array type.
Regards,
Jorus
-
- Sojourner
- Posts: 956
- Joined: Thu Feb 21, 2002 6:01 am
- Location: Copenhagen
I removed a ^. now my trigger looks like:
??????%s&%d{memberHp}/&%d{memberMaxHp}%shit,?????/?????move,?????/?????psp &%w{memberName}
It got the checkmarks "trigger on trigger" and "trigger on newline"
I write group, having debugging on, the trigger is not fired! I take and paste from the screen, into the test-area of my trigger
426/426 hit, 126/126 move, 0/0 psp Disoputlip
and it says success.
What is wrong???
??????%s&%d{memberHp}/&%d{memberMaxHp}%shit,?????/?????move,?????/?????psp &%w{memberName}
It got the checkmarks "trigger on trigger" and "trigger on newline"
I write group, having debugging on, the trigger is not fired! I take and paste from the screen, into the test-area of my trigger
426/426 hit, 126/126 move, 0/0 psp Disoputlip
and it says success.
What is wrong???
Try this pattern:
^??????%s&%d{iMemberHp}/&%d{iMemberMaxHp} %shit,?????/?????move,?????/?????psp &%w{strMemberName}$
Sometimes zmud is a little picky about having no spaces in a complex pattern.
Another solution is to skip using named variables and just go with numbers (it'll probably be faster as the numbered variables won't get saved to "real" variables before being put into the array).
^??????%s(%d)/(%d) %shit,?????/?????move,?????/?????psp (%w)$
The three variables can be referenced by %1 %2 and %3 (as shown in the "testing" panel of the trigger editor).
You might also find you have a faster trigger if you make a simpler trigger.
(%d)/(%d) hit * psp (%w)$
For example. Just turn it on when it is needed, but have it off otherwise.
Regards,
Jorus
^??????%s&%d{iMemberHp}/&%d{iMemberMaxHp} %shit,?????/?????move,?????/?????psp &%w{strMemberName}$
Sometimes zmud is a little picky about having no spaces in a complex pattern.
Another solution is to skip using named variables and just go with numbers (it'll probably be faster as the numbered variables won't get saved to "real" variables before being put into the array).
^??????%s(%d)/(%d) %shit,?????/?????move,?????/?????psp (%w)$
The three variables can be referenced by %1 %2 and %3 (as shown in the "testing" panel of the trigger editor).
You might also find you have a faster trigger if you make a simpler trigger.
(%d)/(%d) hit * psp (%w)$
For example. Just turn it on when it is needed, but have it off otherwise.
Regards,
Jorus
Who is online
Users browsing this forum: No registered users and 20 guests