Trigger output for gains

Posted by Wolfwoman on Sat 08 Jun 2002 08:02 PM — 3 posts, 15,178 views.

#0
I'm trying to figure out how to make something trigger when a character raises a level. I'd like it to send the stat points to a channel specifically for gains.

The text is (the numbers are randmon, and change with each gain, obviously) "You raise a level! You gain 5 hit points and 7 mana!" and it would trigger (grats blah/blah) so it would read on the channel "You grats '5/7'"

The only thing is, I'm not sure how to input the veriables for the stat numbers so that it gives the correct stat number each time a level is gained.

The fact that the gain numbers are different has me confused as to how to write the trigger.
#1
Here's the most basic way to do it that I know of.

  <trigger
   enabled="y"
   match="You raise a level! You gain * hit points and * mana!"
   sequence="100"
  >
  <send>grats %1/%2</send>
  </trigger>


The * in the trigger will capture any text(which in this case should only be the numbers) and save them to %1(for the first *) and %2(for the second *), etc.
#2
THANK YOU!