Guest Unregistered
|
#106 id:12220 Posted Sep 17, 2008, 9:24 am
|
DavidHaley said:EDIT: and, uh, could we fix the code posts so that the page formatting doesn't go all whack?
That didn't used to happen. Looks like someone has been messing with the overflow settings in the skin.
|
|
|
Kayle
Wizard


Group: Members
Posts: 1,258
Joined: Nov 27, 2006
|
#107 id:12223 Posted Sep 17, 2008, 9:44 am
|
I was wondering wtf was up with this page. I have to scroll to the right because of those DG Scripts!
|
......................... Owner/Coder -- Malevolent Whispers -- Development Phase - Not accepting players
Coder -- Star Wars: The Sith Wars -- Open Alpha - Players Welcome - Full System Re-writes Imminent.
FUSS Project Team Lead -- SmaugMuds.Org - The Smaug MUDs Community Center
I3 Contact: Kayle@SithWars
|
|
Fizban
Wizard

Group: Members
Posts: 625
Joined: Jan 8, 2007
|
#108 id:12224 Posted Sep 17, 2008, 9:48 am
|
Sandi said:Heavens, that's ugly stuff. If you could read it, you wouldn't put comments in the middle of it. Why the second %?
What second %
you mean %load% and the things along those lines? There's three separate commands oload mload and wload but you can, and is usually suggested to, use %load% instead which is then parsed into one of the others based on what it is attached to.
And no, i don't usually post comments at all, I only did while writing those right now under the assumption that isn't something that everyone here has used and understands intuitively, which is mot likely the reason for the ugliness as well, or is the following just as ugly when un-commented?
Code (text): Name: 'Push Ball & Touch Stone'
Trigger Intended Assignment: Rooms
Trigger Type: Command , Numeric Arg: 100, Arg list: touch push
Commands:
if %cmd% == push && 'ball /= '%arg%
%send% %actor% You push the ball and reveal a hole in the ground underneath it leading into a cave.
%door% %self.vnum% north room 4500
%echoaround% %actor% %actor.name% puts all of %actor.hisher% weight behind the ball and manages to move it.
elseif %cmd% == touch && 'stone /= '%arg%
%send% %actor% You reach forward and touch the stone, but suddenly feel as if you shouldn't be here and are perhaps invading.
%load% mob 500
%force% %self.people% mkill %actor%
else
%send% %actor% %cmd% what?!?
end
|
Last edited Sep 17, 2008, 9:48 am by Fizban
|
|
|
|
|
|
Fizban
Wizard

Group: Members
Posts: 625
Joined: Jan 8, 2007
|
#111 id:12228 Posted Sep 17, 2008, 10:42 am
|
My only guess is so you could send the literal string '%var' without need of an escape character to tell it that it isn't a variable but the actual string that you want.
|
|
|
|
|
|
|
Sandi
Wizard


Group: Members
Posts: 629
Joined: Jun 17, 2006
|
#114 id:12231 Posted Sep 17, 2008, 11:23 am
|
DavidHaley said:I'm starting to feel a little ignored here.
^ Look! It's David!! Right there! Look! Look! ^
Quote:Parsing is a lot easier when you have delimiters on either end of the identifier. So it wouldn't surprise me at all if somebody made the decision based on that alone -- even though I think it was a bad decision to make.
Ah, now I'm curious. Why do you think it was a bad decision?
|
|
......................... The Witch of Tir na nOg
|
|
|
|
Sandi
Wizard


Group: Members
Posts: 629
Joined: Jun 17, 2006
|
#116 id:12235 Posted Sep 17, 2008, 12:21 pm
|
Fizban said:
And no, i don't usually post comments at all, I only did while writing those right now under the assumption that isn't something that everyone here has used and understands intuitively, which is mot likely the reason for the ugliness as well, or is the following just as ugly when un-commented?
No, that's quite readable. Thank you. I'm quite impressed. Still, I'd like reading it better without the trailing %s, and I'd hate writing them. Since I see no spaces between them, it seems the first would suffice.
I see David just posted, and yes, exactly.
|
|
......................... The Witch of Tir na nOg
|
|
papa
Fledgling

Group: Members
Posts: 2
Joined: Sep 18, 2008
|
#117 id:12281 Posted Sep 18, 2008, 3:22 pm
|
Was the Mud Magic client kyndig's show? Is it now lost along with Mud Magic/Rage until/unless kyndig returns? A pity since it was the best client for working with Unicode.
|
|
|
The_Fury
Sorcerer


Group: Banned
Posts: 485
Joined: Jun 1, 2008
|
#118 id:12282 Posted Sep 18, 2008, 3:39 pm
|
papa said:Was the Mud Magic client kyndig's show? Is it now lost along with Mud Magic/Rage until/unless kyndig returns? A pity since it was the best client for working with Unicode.
I think it was open sourced and with that anyone should be able to fork it and keep the development going. Tho someone might like to correct me here if i am wrong.
OH and Welcome to the boards papa.
|
......................... bMUD: Custom server written in Ruby.
The Oriental Dojo Mud
The_Fury: Coder and Designer.

Last edited Sep 18, 2008, 3:39 pm by The_Fury
|
|
|
|
Fizban
Wizard

Group: Members
Posts: 625
Joined: Jan 8, 2007
|
#120 id:12287 Posted Sep 18, 2008, 6:43 pm
|
It was coded by Elanthis, Kyndig just 'used' it.
|
|
|