ID:161181
 
Hi, How do i use a grid in the skin interface as a stat panel? Obviously you need to use it as text, but ive tried loads of different settings and i cant get text to display on the grid. Can anyone help me please?


Edit: If grids wont work when that else could i use for a stat panel (other than Info) because as you can only use 1 info panel, i wanted to be able to see the stats panel and see the verbs at th e same time. but i cannot display the text anywhere.
Tried output()ting?
Reference << output("[Message]","[elementID]:[column],[row]")


Unlike statpanels, grids cannot contain temp. objects (otherwise they'll disappear after a short while) nor does it update. If you plan to make stats in grids, you have to keep output()ting the new data.

It would be very helpful to you if you had some sort of general procedure made for taking/adding stats, ex "TakeHP()", where you can add a line to update the grid value rather than in a gazillion places.
In response to GhostAnime (#1)
Hmm, i never thought of using output, i thought it would have been winset, however, this works perfectly, thanks a lot, also, i have a general proc ready, as i dont need to update it very much, so thanks for helping me
In response to BrotherBear (#2)
It's a combination of output() and winset(), actually. For more information, read the DM Reference (the entries for the above procs), the Skin Reference, and the Skin/Interface tutorial.