Jump to content

MaxRoll zMUD Script


Filth

Recommended Posts

Here ya go Vintervalpen! This script will automatically set your max rolls based on class and race when you create a character. Copy and save this into notepad then import the file into zMud as an ASCII script. I haven't tested out all the combinations and the totals are based on the Max Roll post, so please pm me about any errors you find in the script.

P.S. You'll have to reconnect after importing the script, but after that it should all be automatic. Type stop anytime during the rolls to disable everything.

P.P.S. I added a new feature. If you don't want to wait hours for the max roll you can manually change the variable. Type setMax x anytime during the rolling process to change your max roll to x.

#CLASS {CharacterCreate} {setdef}

#ALIAS enableCreate {#T+ Race;#T+ Roll}

#ALIAS disableCreate {#T- Race;#T- Roll}

#ALIAS setMax {#VAR max %1}

#VAR class {cleric} {nul}

#VAR race {drow} {nul}

#VAR max {24} {nul}

#CLASS 0

#CLASS {CharacterCreate|Set} {enable}

#TRIGGER {Rolling stats for (&race) (&class).:*} {#IF (@class != "nul") {enableCreate;@{race}Set;#T- Set} {#SHOW *ERROR Class nul*}}

#CLASS 0

#CLASS {CharacterCreate|Race} {disable}

#ALIAS humanSet {#VAR max 24}

#ALIAS feralSet {#VAR max 25}

#ALIAS stormSet {#VAR max 23}

#ALIAS gnomeSet {#VAR max 26}

#ALIAS stoneSet {#IF (@class = "ranger") {#VAR max 20} {#VAR max 22}}

#ALIAS fireSet {#VAR max 22}

#ALIAS ogreSet {#IF (@class = "ranger") {#VAR max 25} {#VAR max 26}}

#ALIAS half-elfSet {#IF (@class = "adventurer") {#VAR max 23} {#VAR max 25}}

#ALIAS werebeastSet {#IF (@class = "ranger") {#VAR max 23} {#VAR max 24}}

#ALIAS avianSet {#IF (@class = "ninja") {#VAR max 26};#IF (@class = "dark-knight") {#VAR max 25};#IF (@class != "ninja"|"dark-knight") {#VAR max 24}}

#ALIAS duergarSet {#IF (@class = "thief") {#VAR max 24} {#VAR max 25}}

#ALIAS dwarfSet {#VAR max 26}

#ALIAS halflingSet {#IF (@class = "bard") {#VAR max 23} {#VAR max 22}}

#ALIAS slithSet {#VAR max 24}

#ALIAS minotaurSet {#IF (@class = "adventurer") {#VAR max 24} {#VAR max 23}}

#ALIAS drowSet {#IF (@class = "cleric") {#VAR max 24};#IF (@class = "adventurer") {#VAR max 23};#IF (@class != "cleric"|"adventurer") {#VAR max 25}}

#ALIAS elfSet {#IF (@class = "paladin") {#VAR max 24} {#VAR max 25}}

#ALIAS fearieSet {#VAR max 21}

#ALIAS illithidSet {#VAR max 24}

#ALIAS nulSet {#SHOW *ERROR* Race not set*;disableCreate}

#CLASS 0

#CLASS {CharacterCreate|Roll} {disable}

#ALIAS stop {disableCreate}

#TRIGGER {~[(%d)~] Cmds~:} {#IF (%1 < @max) {roll} {disableCreate};#SHOW MaxRoll: @max CurrentRoll: %1}

#CLASS 0

Link to comment
Share on other sites

*facepalm*

Why do you make things so complicated... the beaty of things is when you keep them simple.

Seriously, if that is how long your rolling script is, then I really don't want to see your gaming scripts.

#IF (%1 < @max) {roll} {disableRoll};#SHOW MaxRoll: @max CurrentRoll: %1

That's my rolling script. That's all it needs once you set a max.

But that is not all this script does. Someone asked for a script that automatically set the max based on your race and class.

The beauty of this script is how simple it is--there is nothing complicated about it. If you know a way to accomplish this task in a simpler way please post it. That's what forums are for, sharing knowledge and learning from one another, which is exactly what your reply doesn't do.

Link to comment
Share on other sites

To be honest I really don't know if you can input data from a file to zMUD during a trigger/alias/ect. Would be interesting to look into. I think it would take a few more lines of code to read the doc and compare values than simply returning a value in the script, but some interesting possibilities emerge if you can do that.

Link to comment
Share on other sites

Someone asked for a script that automatically set the max based on your race and class.

If you know a way to accomplish this task in a simpler way please post it.

Yes, open the max rolls thread, then find the combo you are looking for then set the number yourself. It takes like... 3 seconds.

Or keep such a file on your PC. I am sure everyone has one with their max rolls for different combos.

Link to comment
Share on other sites

Or you could sit there and type roll over and over again until you get a number you like.

Or better yet, why not just sit around a campfire outside our dirt house and tell stories and sing songs while our women cook our meat and vegetables after a long day tilling a field by hand. We don't need computers!

Computers were created to do very quick calculations so we don't have to. Every computer program is designed to do things for us that we could not do fast enough or to take the menial tasks out of every day life.

Yes, you can do any part of this script by hand but the point of the program is so that you don't have to.

Link to comment
Share on other sites

Or you could sit there and type roll over and over again until you get a number you like.

That is some exaggeration you've got there, but be my guest - feel free to spend hours writing scripts that you don't really need.

In the end, it's your time and you decide what to do with it.

Link to comment
Share on other sites

What I don't understand is why you are taking this so personally. You saw something you didn't like or understand and instantly made an attack on my character. You really gotta chill out.

I first responded to you with mindset of a debate, but I now realize that you are just flaming. I could tell you about thousands and thousands of lines of code for this very game alone and the countless hours its developers and current staff put into it. I could explain that saying I spent hours and hours on this script is the exagerattion. But I think it would fall on deaf ears.

I gave the forum my script so people interested in programming could salivate over new code (like I do) or for anyone who wants to use a very solid, tight rolling script that requires no effort could use it.

Let me jump away from logic for a moment and speak in words you would understand. gtfh foxx, go hate somewhere else.

Link to comment
Share on other sites

That is some exaggeration you've got there' date=' but be my guest - feel free to spend hours writing scripts that you don't really need.[/quote']

See, this is an opinion. I myself, were I a Zmud user, would quickly have snatched up the code that Filth wrote. I personally see it as quite useful. Countering an OPINION with an OPINION that states how WRONG the original OPINION was is not logic. And that is a fact.

In the end' date=' it's your time and you decide what to do with it.[/quote']

This is correct, so why are you trying to prove a point/pick an argument over code someone else asked for/to see?

I'm going to bed. I think from now on I'll take my leave of the forums as long as I'm not active in game.

Shoot me a PM, sometime, Filth. Missed ya. ;)

Link to comment
Share on other sites

#IF (%1 < @max) {roll} {disableRoll};#SHOW MaxRoll: @max CurrentRoll: %1

That's my rolling script. That's all it needs once you set a max.

But that is not all this script does. Someone asked for a script that automatically set the max based on your race and class.

The beauty of this script is how simple it is--there is nothing complicated about it. If you know a way to accomplish this task in a simpler way please post it. That's what forums are for, sharing knowledge and learning from one another, which is exactly what your reply doesn't do.

Mine looks very similar on tintin++. Except it's ALL on ONE line. Hehe. I'm glad the Max Rolls thread we've all contributed to helped you make that script. That's an awesome concept, too.. adding it based on class AND race.

Thumbs up, yo. Don't let the haters hate.

Link to comment
Share on other sites

I have a Trigger/Action script like this. If you want' date=' I can post it for everyone to see (if they have tintin/wintin).[/quote']

I do as well, however it ties heavily into acces. Since I develop database applications for a living, it was just second hat.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...