Geyser & Tables

Share your scripts and packages with other Mudlet users.
Post Reply
Nylian
Posts: 5
Joined: Thu Jan 02, 2014 12:10 am

Geyser & Tables

Post by Nylian »

I am attempting to create an "info here" miniconsole using Geyser and could use some help.

I have this script (for achaea):
http://forums.mudlet.org/viewtopic.php?f=6&t=3356
Which gathers the relevant information in to two tables; "inv_items" and "room_items"

How do I then pass the information from those tables in to a miniconsole or a label?

Label example:

Code: Select all

itembox = Geyser.MiniConsole:new({
  name="itembox",
  x="74%", y="20%",
  width="20c", height="10c",
})
Thanks for the help.

Nyl

---

Edit: In the time it took for this to post I was able to get this resolved with Mosr's help. I'll post what I've got working and a followup question later today.
Last edited by Nylian on Fri Jan 03, 2014 4:27 am, edited 1 time in total.

Nylian
Posts: 5
Joined: Thu Jan 02, 2014 12:10 am

Re: Geyser & Tables

Post by Nylian »

Here's the entire package including what was used from the other post. This has the container and the script that inserts the table into the miniconsole.

Thanks to Mosr, Lithorin, and Phoenix for getting it working.

My followup question would be how to add a link or button before the text with a "p" for probe, "t" for target, stuff like that. If anyone is willing to fill me in that would be steller.

Heres the code from just the table insertion (where I believe you would put the link to probe, target, etc.)

Code: Select all

function itemBox()
  if gmcp.Char.Items.List.location == "room" then
	clearWindow("itembox")
    for _,v in ipairs(room_items) do
      cecho("itembox", v.id..string.rep("-",15-string.len(v.id))..v.name.."\n")
   end
  end
end
Attachments
info_here_miniconsole.zip
(1.64 KiB) Downloaded 697 times

Post Reply