|
Kronas Wanderer
Joined: 28 Dec 2003 Posts: 62 Location: Australia
|
Posted: Wed Jan 07, 2004 8:56 pm
multi scrolling trigger |
Hello, not sure of the subject is correct ,but what I would like to know is how do you set up a trigger to play the value in random.
example Patter you have slain* Value eat that scum!!!
die dog!!!!
how's that !
etc.... then goes back to the 1st one. A loop.
Simple question....but I'm a simple person! |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Thu Jan 08, 2004 2:40 pm |
rubitinmsg={"die dog!!!"|"Howzat?!?!"|"Eat that, Scum!"}
#TR {You have slain*} {%item( @rubitinmsg, %random( 1, %numitems( @rubitinmsg))) %1}
That randomly picks from the message... to actually cycle through...also have:
rubcount=0
#TR {You have slain*} {%item( @rubitinmsg, @rubcount)
#ADD rubcount 1}
But when playing with automatic emotes/says from triggers, random is kinda cool. |
|
|
|
Kronas Wanderer
Joined: 28 Dec 2003 Posts: 62 Location: Australia
|
Posted: Mon Jan 12, 2004 5:10 am |
Thanks But sorry I have no idea how to convert that line into action.
I understand the trigger,but what is the alias,the variable.Cause I set it up as such....trigger pattern <you have slain*> and typed the rest in the value box...%item (@rubitinmsg,@random 1,numitems {@rubitinmsg)))%1.like that.Made a variable rubitinmsg..and put the 3 actions below.....tested it and I got all 3 actions up on the screen with a prompt...What is it you wish to do?I know its right but I have set it up wrong...Sorry..new at this but interested |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Mon Jan 12, 2004 9:04 pm |
For the random one, Caled calls on %1 in the trigger but doesn't set it to any value, so remove %1 from the value section. So, you would paste:
rubitinmsg={"die dog!!!"|"Howzat?!?!"|"Eat that, Scum!"}
#TR {You have slain*} {%item( @rubitinmsg, %random( 1, %numitems( @rubitinmsg)))}
For the looping one, Caled forgot to reset the count when it has reached the last item in your list. So you would do this:
#TR {You have slain*} {%item( @rubitinmsg, @rubcount)
#ADD rubcount 1
#IF (@rubcount=%numitems(@rubitinmsg)) {rubcount=1}} |
|
|
|
|
|
|
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
|
|