conditionals and inventory (Achaea)
conditionals and inventory (Achaea)
I would appreciate your expertise in learning about conditionals in Mudlet. Specifically, I'd like to be able to code a little thing that would check my inventory for various kinds of corpses that Talus likes (sheep, lions, crocodiles, etc.) and IF such a corpse is found, THEN send "give sheep to Talus" or "give lion to Talus" or whatever. Is that something manageable? Knowing something about conditionals would help me understand Mudlet, as well as decreasing the wear and tear on my typing fingers.
Re: conditionals and inventory (Achaea)
Well, I would think it wouldn't be that complicated. Capture your inventory and store it in a table. And since you care about corpses in particular, maybe have a special table just for corpses.
Then, when you need to give someone a certain corpse, you can check if such a corpse exists by keyword. Like this:
Then, when you need to give someone a certain corpse, you can check if such a corpse exists by keyword. Like this:
Re: conditionals and inventory (Achaea)
Thank you very much, Jor'Mox.
Re: conditionals and inventory (Achaea)
If your game supports GMCP: