|
Raistlin Beginner
Joined: 12 Oct 2000 Posts: 16 Location: USA
|
Posted: Tue Jun 29, 2004 2:32 am
Some help with clan triggers for Materia Magica? |
Ok.
So I'm planning on having a trigger that will activate when it goes through the 'clan list' (command), and on certain clans, PK clans to be exact (PK clans are shown in bright red on the clan listing, while normal clans are bright yellow.) and store the clan NUMBER, in a variable, and then when it gets done the clan list, it will go through and individually list each clan number in the variable.
Here's some example lines from what I'm talking about (as well as what each word down there means:
Code: |
# Clan Name Type Members Owner(s)
[ 2] Enigma Cult 36 /36 Shadowlight [TAX]
[ 11] Knighthood Order 15 /24 Diablo [TAX]
[ 23] Dragon Tribe 21 /27 Caillean
[ 26] Valhalla Guild 18 /21 Forge, Slump, H [TAX]
[ 46] The Unforgiven Lodge 13 /18 Swansong [TAX]
[ 59] Empire Tribe 9 /18 Azmodan [TAX]
[ 73] Section Five Lodge 16 /21 Maldrak [TAX]
[115] The Dark Order Order 8 /18 Spyro, Iluvatar
|
That's the listing of the PK clans on the game. [TAX] means that the clan has to pay a tax, which is irrelivant in this trigger, but is shown on the clan listing. The NAME OF THE CLAN is shown in red. The clans around them/non PK clans, are shown in yellow.
Now then, back to the original question. Can somebody help me, or come up with, the trigger to go off of the above line(s), do a 'clan list #' after the clan listing gets done (probably going off of 'A total of xx clans.'), and keep them stored in a variable? Might seem a little complicated, but the theory behind it is easy, it's just been far too long since I've had to do color-based triggers, so I can't quite remember how to do it..
Lemme know if anybody can help :) |
|
|
|
Raistlin Beginner
Joined: 12 Oct 2000 Posts: 16 Location: USA
|
Posted: Tue Jun 29, 2004 3:45 am |
Got it narrowed down, so far, to
Code: |
#trigger {%e[1;33m~[%s(%d)~]%e[0m %e[1;31m(%w)%s} {clan list %1} "" "color"
|
But still not quite completely there.. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jun 29, 2004 6:51 am |
#TR {%e[1;33m%p(%d)~]%e[0m %e[1;31m(%w)} {#ADDI PKclans {%1}} {} {color}
#TR {A total of %d clans} {#FORALL @PKclans {clan list %i}}
Beware of trigger loops. |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|