Hello,
I want to make a room/text editor in VBScript. On my Macintosh I use a client called Rapscallion, and it has some of the best scripting capabilities around, compared to other MUD clients. Only problem is that I use Windows at work. What I want to do is this:
I want to catch the description from a 'room stat' command output that looks like this:
---
Room name: Artovil's Loft Room
Zone: [ 12], VNum: [ 1297], RNum: [ 505], Type: Ancient Regio
Flux Type: Rich (20), Available Flux: 120
SpecProc: None, Flags: NO_MOB INDOORS ANCIENT
Resources : NOBITS
Ore : 0 ( 0) Gems : 0 ( 0)
Wood : 0 ( 0) Stone : 0 ( 0)
Description:
This roomy little loft space is lined from floor to roof with bookcases.
When you look at the books you see that strange titles in various ancient and
extinct languages adorn their spines. A large brass chandelier casts eerie
shadows upon the spartan furnishings and over the bookcases; which makes the
multitude of gilden letters and leathery surfaces glisten with illusory light.
The sound of soft music can be heard from an unintelligble source, it sounds a
little like an ancient latin monastery chant.
Extra descs: books book tome
Chars present: Artovil(PC)
Contents: a notepad belonging to Artovil, a grand oak desk
Exit west : To: [ 1251], Key: [ 0], Keywrd: None, Type: NOBITS
No exit description.
Script information:
None.
---
Starting from "Description:" I want to catch the text down to "Extra descs:". Currently there is obviously no way to keep catch more than one line with a trigger, am I correct? If I could do that, then I could put it all into a variable I suppose.
So, what I think I would have to do is make a trigger that fires on "^Description:$" and then calls a script that begins catching lines from that line forward, until another trigger fires on "^Extra descs: "
Now to the core of my question: Is it possible to put the caught text into a notepad window, then somehow search for a window close event and send what was in the window to the world again? Please tell me there's a way to do this?
If not, Nick, can you please consider implementing such functionality into a future version of MUSHclient?
I want this out of many reasons, number one, it makes online building so much easier, also, it is excellent for roleplaying with emote/pose since you can edit your entire emote in one nice window and then send it all to the world.
Any constructive input welcome!
Thanks for taking your time to read this rant, and I hope that perhaps I sparked an idea somewhere...
Warmest Regards,
Torgny 'Artovil' Bjers
Implementor, Arcane Realms MUD
I want to make a room/text editor in VBScript. On my Macintosh I use a client called Rapscallion, and it has some of the best scripting capabilities around, compared to other MUD clients. Only problem is that I use Windows at work. What I want to do is this:
I want to catch the description from a 'room stat' command output that looks like this:
---
Room name: Artovil's Loft Room
Zone: [ 12], VNum: [ 1297], RNum: [ 505], Type: Ancient Regio
Flux Type: Rich (20), Available Flux: 120
SpecProc: None, Flags: NO_MOB INDOORS ANCIENT
Resources : NOBITS
Ore : 0 ( 0) Gems : 0 ( 0)
Wood : 0 ( 0) Stone : 0 ( 0)
Description:
This roomy little loft space is lined from floor to roof with bookcases.
When you look at the books you see that strange titles in various ancient and
extinct languages adorn their spines. A large brass chandelier casts eerie
shadows upon the spartan furnishings and over the bookcases; which makes the
multitude of gilden letters and leathery surfaces glisten with illusory light.
The sound of soft music can be heard from an unintelligble source, it sounds a
little like an ancient latin monastery chant.
Extra descs: books book tome
Chars present: Artovil(PC)
Contents: a notepad belonging to Artovil, a grand oak desk
Exit west : To: [ 1251], Key: [ 0], Keywrd: None, Type: NOBITS
No exit description.
Script information:
None.
---
Starting from "Description:" I want to catch the text down to "Extra descs:". Currently there is obviously no way to keep catch more than one line with a trigger, am I correct? If I could do that, then I could put it all into a variable I suppose.
So, what I think I would have to do is make a trigger that fires on "^Description:$" and then calls a script that begins catching lines from that line forward, until another trigger fires on "^Extra descs: "
Now to the core of my question: Is it possible to put the caught text into a notepad window, then somehow search for a window close event and send what was in the window to the world again? Please tell me there's a way to do this?
If not, Nick, can you please consider implementing such functionality into a future version of MUSHclient?
I want this out of many reasons, number one, it makes online building so much easier, also, it is excellent for roleplaying with emote/pose since you can edit your entire emote in one nice window and then send it all to the world.
Any constructive input welcome!
Thanks for taking your time to read this rant, and I hope that perhaps I sparked an idea somewhere...
Warmest Regards,
Torgny 'Artovil' Bjers
Implementor, Arcane Realms MUD