Help with a manse room counter

by Richter

Back to Mechanic's Corner.

Richter2006-03-11 23:48:51
When you destroy a manse room, and then add a new one, it just keeps going with the numbers, so if you've destroyed two rooms in a manse, and then added until it says manse_10 on the room list, you'd actually have eight. Thus, I'm looking for a script that can total up the rooms that I have.

If I typed manse room list deepnight, it would show:

deepnight_1 Grand Plaza of Deepnight
deepnight_2 A warm, candle-lit suite
deepnight_3 Reading room
deepnight_4 A small waiting room
deepnight_5 A moonlit tenement
deepnight_6 Merchant's Guild common room
deepnight_7 Foyer of the Carthan Estate
deepnight_8 A makeshift workshop
deepnight_9 Noctus Boulevard
deepnight_10 Verdant stretch of Noctus Boulevard
deepnight_11 A fusion of nature and Noctus Boulevard
deepnight_12 Library of Enlightenment
deepnight_13 Office of the Archon
deepnight_14 Library foyer
deepnight_15 Community stables
deepnight_16 Altus Way outside a tavern
deepnight_17 World's End Tavern and Inn

Okay, it'd show more than that, but... Anyway, that's 17 rooms right there. I'd want something that could say Total Rooms: 17. As my rooms start getting up in the 80's, I think I deleted about 5, and I'm adding another ten or so now.

Anyone able to figure out something like this?
Soll2006-03-12 00:35:55
#var mymanse ""
#alias mrl {#send {Manse room list @mymanse};#var manserooms 0;#trigger "Manselist" {^@mymanse*$} {#add manserooms 1};#temp {^************************************************************} {#echo Total rooms: @manserooms;#untrigger "Manselist"} "" {verbatim}}
Richter2006-03-12 00:56:13
Excellent, it works. And just for a few seconds, Soll got to own Deepnight, hehe.