|
zanakobu Beginner
Joined: 12 Oct 2002 Posts: 10 Location: Canada
|
Posted: Sat Oct 12, 2002 4:44 pm
Random trigger |
Allright, here is the problem. I need to make a trigger, so that when a person says heads. there is a 50% chance that i will emote heads, and a 50% chance i will say tails. i also need it for when they say tails. thanks.
|
|
|
|
zanakobu Beginner
Joined: 12 Oct 2002 Posts: 10 Location: Canada
|
Posted: Sat Oct 12, 2002 4:45 pm |
heh. that should be that i emote heads aswell, not i say heads. :P thanks.
|
|
|
|
zanakobu Beginner
Joined: 12 Oct 2002 Posts: 10 Location: Canada
|
Posted: Sat Oct 12, 2002 4:46 pm |
and that should be tails, not heads :(
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Oct 12, 2002 4:57 pm |
#TR {%w says Heads} {emote %if(%random(1,2) > 1, heads, tails)}
#TR {%w says Tails} {emote %if(%random(1,2) > 1, heads, tails)}
LightBulb
Senior Member |
|
|
|
zanakobu Beginner
Joined: 12 Oct 2002 Posts: 10 Location: Canada
|
Posted: Sat Oct 12, 2002 5:05 pm |
thanks lightbulb, exactly what i needed
|
|
|
|
zanakobu Beginner
Joined: 12 Oct 2002 Posts: 10 Location: Canada
|
Posted: Sat Oct 12, 2002 5:42 pm |
ok having problems now, it is saying one way more than the others, how can i make it if the person says 'heads' it says tails 2/3 times. thanks.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Oct 12, 2002 8:26 pm |
quote:
ok having problems now, it is saying one way more than the others, how can i make it if the person says 'heads' it says tails 2/3 times. thanks.
Increase the max %random() value (in Lightbulb's post, that would be the number 2) to 3, and increase the > 1 part to > 2:
%random(1,3) > 2
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|