|
Somebodystrange Newbie
Joined: 27 Jun 2005 Posts: 6
|
Posted: Mon Jun 27, 2005 9:07 am
Statroller (yes, another one) |
Ok, well, I've looked through all the posts on statrollers and the like an I've found a few that may work, but I can't manipulate them the way you guys can. Please help.
Code: |
Your stats are:
Current Race Stat Abil
Stat Mod Total Mod
Agility : 0 + 0 = ( 0) [-5]
Stamina : 0 + 4 = ( 4) [-3]
Strength : 0 + 0 = ( 0) [-5]
Quickness : 0 + 2 = ( 2) [-4]
Perception : 0 - 2 = ( -2) [-5]
Intelligence: 0 - 4 = ( -4) [-5]
Your roll: 17, 17, 16, 17, 16, 12
Type <attribute> <number> to assign a number to an attribute.
Choices are: reroll, clear, and done. |
Ok, I've tried making my own, but it looks like it just loops when I try.
I don't know if the assign screen would be relevent or not. Any help would be greatly appriciated. |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Mon Jun 27, 2005 7:12 pm |
What exactly are you looking for as far as stats go? A total of the "Your roll:" that is at least a certain amount, a certain combination of numbers in "Your roll:", or something else? It helps when writing one of these to know what you're shooting for.
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
Somebodystrange Newbie
Joined: 27 Jun 2005 Posts: 6
|
Posted: Mon Jun 27, 2005 8:18 pm |
Ah... a certain combination of numbers in "Your roll:". I'm also having a problem with text disappearing when I try to save the trigger.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Mon Jun 27, 2005 8:27 pm |
Without your preferred stat roll, you can try setting it up like this:
#TRIGGER {^Your roll: &%d1, &%d2, &%d3, &%d4, &%d5, &%d6} {#IF ((@1 = 20) AND (@2 = 20) AND (@3 = 20) AND (@4 = 20) AND (@5 = 20) AND (@6 = 20)) {#SAY You've reached your preferred stats!} {<roll stats command here>}}
I never test triggers because, well, I don't play your muds. But, maybe it works. Sue me later if it doesn't. As for the text disappearing when you try to save the trigger, what text are you talking about?
Charneus |
|
|
|
Somebodystrange Newbie
Joined: 27 Jun 2005 Posts: 6
|
Posted: Tue Jun 28, 2005 3:07 am |
I swear I posted a reply a few hours ago. Maybe it's just not showing up. Thanks for the trigger, but it didn't work, it gaves me no errors, but it didn't do anything else either. And, when I say I press save and the text disappears, I mean, everything that I had just typed for a trigger or alias or whatever, just disappears. I don't know any other way to describe it.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jun 28, 2005 4:26 am |
Try it this way:
#TRIGGER {^Your roll: (%d), (%d), (%d), (%d), (%d), (%d)} {#IF ((%1 = 20) AND (%2 = 20) AND (%3 = 20) AND (%4 = 20) AND (%5 =20) AND (%6 = 20)) {#SAY You've reached your preferred stats!} {roll stats}}
As for the disappearing text trick, don't know. I know that if I enter triggers on the command line, that they often don't capture the full text. For instance, if I were to enter the above text, then check it in settings, I would see this:
Pattern: ^Your roll: (%d), (%d), (%d), (%d), (%d), (%d)
Action: {#IF
That's it. Hmmm... very interesting. Let me know if the new trigger setup works. I've also managed to make a pretty decent multiline trigger capture. Heh.
Charneus |
|
|
|
Somebodystrange Newbie
Joined: 27 Jun 2005 Posts: 6
|
Posted: Tue Jun 28, 2005 7:32 pm |
Heh. It works when it wants to. I mean, it does something, I'm just not sure what. Sometimes it rerolls the stats, sometimes it says it hit the preferred stats when it didn't, sometimes it does nothing at all. But, the way things have been going, the next try should do it. Or maybe I'm half asleep and rambling.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jun 28, 2005 9:21 pm |
Hmm. Gonna try it this way now:
#TRIGGER {^Your roll: (%d), (%d), (%d), (%d), (%d), (%d)} {#IF ((!%1 = 20) AND (!%2 = 20) AND (!%3 = 20) AND (!%4 = 20) AND (!%5 =20) AND (!%6 = 20)) {roll stats}}
Don't know if this one will work. Uh, if you want, I can maybe connect to the mud you're on and test these out. Just send the link and stuff.
Charneus |
|
|
|
Somebodystrange Newbie
Joined: 27 Jun 2005 Posts: 6
|
Posted: Tue Jun 28, 2005 11:35 pm Statroller (yes, another one) |
Ok, I changed the 'd' to a number, and moved the '!' to right infront of the '=' and it seems to be working. I take that back, it rerolls automatically about five times before I have to type reroll. So, it stops when there's only one of the stats I'm looking for instead of all 6 stats being the same. www.scmud.org port 3030. Hope I'm not being a bother or anything.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Jun 29, 2005 12:41 am |
I found out why. It's due to the spacing. So, the following trigger will work:
Pattern: Your roll:%s(%d),%s(%d),%s(%d),%s(%d),%s(%d),%s(%d)
Action:
#IF ((%1 > 12) AND (%2 > 12) AND (%3 > 12) AND (%4 > 12) AND (%5 > 12) AND (%6 > 12)) {#SAY You've reached your preferred stats!} {reroll}
You can change the '>' and the number to whatever you want. But it works perfectly. I didn't think about the spacing when it was just a single digit. :P
Charneus |
|
|
|
|
|
|
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
|
|