@verb #833:"msg_carry_plur" this none this rxdo #833
@program #833:"msg_carry_plur" this none this
cols = 3
longear = gear = {}
width = player:linelength()
li_width = length($html_utils:detag(player.output_rendering_object:render("
")))
for thing in (args[1])
if (length($html_utils:detag(thing)) + 1 + li_width > width / cols)
longear = {@longear, "" + thing + ""}
else
gear = {@gear, "" + thing + ""}
endif
endfor
lines = {@$string_utils:columnize(gear, cols, width - cols * li_width), @longear}
lines[1] = "" + lines[1]
lines[$] = lines[$] + "
"
return "%T~S is carrying:
" + $string_utils:from_list(lines, "
")
.