Author |
Message |
Topic: Problem with "or" in an #IF statement? |
Nethran
Replies: 1
Views: 4238
|
Forum: zMUD General Discussion Posted: Wed Mar 21, 2012 5:13 pm Subject: Problem with "or" in an #IF statement? |
When I'm walking and hit a wall:
#IF (@mango=1) {
#SAY " "
#SAY %ansi( bright, green)"ROW: "%ansi( bright, white)@row%ansi( bright, gr ... |
Topic: Copying the Values of a String List Variable to Another String List Variable |
Nethran
Replies: 0
Views: 3347
|
Forum: zMUD General Discussion Posted: Fri Jan 06, 2012 2:47 am Subject: Copying the Values of a String List Variable to Another String List Variable |
I'm making a script to move track the levels of people in my formation and auto-congratulate those who've leveled. Not track, really, just to notice a difference.
Anywho, I can't get the values of ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Wed Jun 08, 2011 10:36 pm Subject: Variable In Script By Alias Command |
Been tweaking some stuff. If I wanted %1 to default to 1 if it in fact is equal to %null... How would I do that? I have some code saying:
#ALIAS cinfo {#IF (%1=%null) {%1=1 ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Tue May 31, 2011 7:56 pm Subject: Variable In Script By Alias Command |
Ahh, sweet. Thanks, man. |
Topic: Something Someone Asked Me |
Nethran
Replies: 7
Views: 12628
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 11:55 pm Subject: Something Someone Asked Me |
I'm just curious if something like this:
#VAR copystats
{kills=@kills|bashhit=@bashhit|bashmiss=@bashmiss|kickhit=@kickhit|kickmiss=@kickmiss|evades=@evades|totaldefs=@totaldefs|armhit=@armhi ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 11:27 pm Subject: Variable In Script By Alias Command |
That, of course, worked. Thank you sir.
Still this, though:
I had what you have first, but still copyview all by itself was allowing the script to work. If it works like that, then it will displ ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 11:17 pm Subject: Variable In Script By Alias Command |
And another problem:
%exec(%concat(@,copystats,%1,"."ckills,%1)) = @kills
I have an alias to do this, to test. Anyway, it's not working.
I've tried it without the ... |
Topic: (Another!)Distinguishing Between Melee and Spells |
Nethran
Replies: 2
Views: 5337
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 10:59 pm Subject: (Another!)Distinguishing Between Melee and Spells |
If I gagmy prompt, I can't see my stats. D: Also, it's only an issue with fireshield/lightning shroud. It's less of an issue with the spells, as the damage strings are displayed the same way as if t ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 10:56 pm Subject: Variable In Script By Alias Command |
I had what you have first, but still copyview all by itself was allowing the script to work. If it works like that, then it will display the stats without applicable variables(all the variables have ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 10:18 pm Subject: Variable In Script By Alias Command |
Awesome sauce. I'm using:
%exec(%concat(@,kills,%1)).
Works great. :)
So say in my script I have:
#ALIAS {copyview}
{
#IF (%1=1 OR %1=2 OR %1=3 OR %1=4 OR %1=5)
... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 8:07 pm Subject: Variable In Script By Alias Command |
I don't think zMUD does support Switches. I was hoping to avoid the possibility of a series of ifs. Hmm. Even were I to use them, how would I get it to add the 1 or oher number to the end of the va ... |
Topic: Something Someone Asked Me |
Nethran
Replies: 7
Views: 12628
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 8:00 pm Subject: Something Someone Asked Me |
But in the case of where a player's name or an npc's name would be, it would be best to use * because the names can be multiple words and thousands of possibilities, right? |
Topic: Something Someone Asked Me |
Nethran
Replies: 7
Views: 12628
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 7:19 pm Subject: Something Someone Asked Me |
Badass, man. That'll help me a ton! :)
What do you make of Shinde's thoughts on using * as a basic catch-all wildcard in my triggers? |
Topic: (Another!)Distinguishing Between Melee and Spells |
Nethran
Replies: 2
Views: 5337
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 5:49 pm Subject: (Another!)Distinguishing Between Melee and Spells |
The problem lies with:
#TRIGGER {You are * on the * by a * causing * damage.} {#ADD hitstaken 1}
#TRIGGER {*is*on the %1 with your %2 causing %3 damage.} {#ADD ... |
Topic: Something Someone Asked Me |
Nethran
Replies: 7
Views: 12628
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 5:33 pm Subject: Something Someone Asked Me |
Just a few critiques:
Does cMud/zMud support named array fields/associative arrays? I think you could clean things up with those. ie: only have one variable (say comstats) with a member for each ... |
Topic: Variable In Script By Alias Command |
Nethran
Replies: 17
Views: 24263
|
Forum: zMUD General Discussion Posted: Mon May 30, 2011 4:56 pm Subject: Variable In Script By Alias Command |
Hi again. :) Imma take over the first page of these forums eventually.
So I finished that script, and it's awesome and a bunch of people like it(I posted it on the MUD I play's main forums). I ev ... |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Fri May 27, 2011 2:47 pm Subject: Equal Spacing |
Woot. Took me a sec, but apparently I also wasn't spacing the percentages far enough from the values of the hit locations, so it wasn't allowing the formatting to work right. Trew in two extra spacs ... |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Fri May 27, 2011 1:05 am Subject: Equal Spacing |
Am I annoying you guys? I'm annoying myself quite badly.
Changed it up to simplify it and it's not very simple for me.
New script:
#echo {%repeat(" ",2)%ansi(brig ... |
Topic: Newbish Question (Process of Elimination with Variables) |
Nethran
Replies: 3
Views: 6363
|
Forum: zMUD General Discussion Posted: Thu May 26, 2011 6:01 pm Subject: Newbish Question (Process of Elimination with Variables) |
I would like it to be known that I am a moron. There were blank lines beneath the code that were causing it to 'hit enter' and throw blank lines onto the screen when it triggered.
>_< |
Topic: Newbish Question (Process of Elimination with Variables) |
Nethran
Replies: 3
Views: 6363
|
Forum: zMUD General Discussion Posted: Thu May 26, 2011 5:52 pm Subject: Newbish Question (Process of Elimination with Variables) |
I'm not sure why, but with your script, this is happening:
[Mail]<1563hp 1342sp 1539st>
Your magically enhanced weapon slices cleanly through a citizen!
A citizen is cut on the t ... |
Topic: Newbish Question (Process of Elimination with Variables) |
Nethran
Replies: 3
Views: 6363
|
Forum: zMUD General Discussion Posted: Thu May 26, 2011 5:23 pm Subject: Newbish Question (Process of Elimination with Variables) |
My script:
Trigger:
*is*on the * with your %1 causing*damage.
Value:
#IF (%1=bash) {#VAR bashes {%eval(@bashes+1)}}
#IF (%1=slash) {#VAR ... |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Thu May 26, 2011 5:16 pm Subject: Equal Spacing |
I didn't use your code exactly, but it works great now. Thanks Shalimar and Charneus. :D Sorry for being a noob at this.
Next up: An even newbier question. |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Thu May 26, 2011 12:01 am Subject: Equal Spacing |
Ok. Here's my current script:
#echo %ansi(bright,blue)Location Accuracy:
#echo {%repeat(" ",2)%format("&-35s &30s &-5s",%concat( ... |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Wed May 25, 2011 10:11 pm Subject: Equal Spacing |
That works great. I modified it a little though because the values for torsohit and all of those weren't showing up for some reason. Here's what I have:
#echo {%format("&35s & ... |
Topic: Equal Spacing |
Nethran
Replies: 14
Views: 16505
|
Forum: zMUD General Discussion Posted: Wed May 25, 2011 6:40 pm Subject: Equal Spacing |
Location Accuracy:
Head:3 Torso:48
Arms:0 Legs:3
Tail:9 Wings:0
*You are currently aiming for your opponents' torso.
^This is what it's looking like for me ... |
|