ID:166289
![]() Aug 26 2006, 9:34 am
|
|
I have 2 stat panels, one is for monsters you own, one is for items you have, when you get a monster it goes into your contents. All the monsters are mobs of course. The probelm is right now both stat panels just look into your contents, I need the monster stat panel to only show the monsters you have with their stats, and the item panel to just show the items you have. Right now both stat panels show monsters and items. How do I do fix this?
|
i am horrible with lists, I have no idea how to use them, could you explain them to me?(code example of something else would be nice, I wanna figure mine out :P)
|
If he uses two lists, then he will lose all "set src in usr" verbs unless he store the objects in both the contents and the list. The easy solution? Do a for() loop for the specific type and stat those under each tab. Also, make sure you're doing "if(statpanel(name))" to save CPU.
|
DarkCampainger wrote:
Do a for() loop for the specific type and stat those under each tab. Also, make sure you're doing "if(statpanel(name))" to save CPU. huh? |
If you don't know what a for() loop is, you'll want to look it up. If I'm just typing barely understandable sentences, this is what I meant:
mob Like that. You'll have to change a few things so it works in your game, but that's the basic concept. |
DarkCampainger wrote:
If you don't know what a for() loop is, you'll want to look it up. If I'm just typing barely understandable sentences, this is what I meant: > mob Like that. You'll have to change a few things so it works in your game, but that's the basic concept. thank you very much that make awhole lot more since^_^ |
Make two lists,inventory and monster.