Garrulous Glaahk spyderbytes Posted April 5, 2004 Share Posted April 5, 2004 The docs for special items seem pretty skimpy (to say the least). Is it possible for the party to find a special item in, say, a crate (after killing the monster guarding it)? Or does it have to be granted programmatically? If the former will work, how? I can't figure out how to place anything but regular items in the editor. Link to comment Share on other sites More sharing options...
Articulate Vlish Banana Posted April 5, 2004 Share Posted April 5, 2004 You could, for example, have the monster drop a "crate" (or have it created when the monster dies) which is actually an item, and which when opened (used) grants the special item. Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted April 5, 2004 Share Posted April 5, 2004 Well, you'd have to give it to the party in a script. Generally, putting special items in crates and barrels is a bad idea because they can be pushed around, which would mean that your special node would sometimes be on a space without the crate. Using a chest or some sort of terrain would be better. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted April 5, 2004 Author Share Posted April 5, 2004 Quote: Originally written by Drakefyre:Well, you'd have to give it to the party in a script. I knew I didn't see any other way, but I thought (hoped?) I might have been missing something. Quote: Generally, putting special items in crates and barrels is a bad idea because they can be pushed around, which would mean that your special node would sometimes be on a space without the crate. Using a chest or some sort of terrain would be better. Hmm... good point. I'm actually accomplishing pretty much exactly what I want with a normal ol' item right now. The only reason I was thinking of making it a special item is that it's the item necessary to complete a quest, and it looks like junk (actually it is... the scenario I'm working on is a lampoon of the worser variety of homegrown CRPGs ). It's basically just the jug item. But I made mine with an icon color shift and gave it a slightly different name, so maybe that will be good enough. I just didn't want the player leaving it behind or throwing it out because s/he thought it was junk if s/he stumbled across it before receiving the quest to "FedEx" it to the NPC too lazy to get it himself. -spyderbytes (edited for grammar) Link to comment Share on other sites More sharing options...
Garrulous Glaahk Isaac Posted April 5, 2004 Share Posted April 5, 2004 A common way to give special items that a monster is guarding is give it when the monster dies (You find a interesting looking jug on the monster). This would require a custom creature script for it, though. Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted April 5, 2004 Share Posted April 5, 2004 No it doesn't - you can call a state upon monster death. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted April 5, 2004 Author Share Posted April 5, 2004 Actually, my jug-guardian spiders already have a custom script for some custom targeting AI, so that part isn't a problem. What was originally holding me up was trying to figure out how to give the special item when the last spider died, and not for each one (and that's why I wanted to place it in a nearby container, as I would a normal item). But then I discovered friends_nearby, and now all's well with the world. I've changed it so I'm granting the special item when friends_nearby returns 0 (meaning all the others are already dead when this one dies). So, problem solved. Thanks for the help! -spyderbytes Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted April 5, 2004 Share Posted April 5, 2004 A safer way is to increment (or decrement) an SDF every time one dies, and when the flag reaches the number of monsters (or zero), then all are dead. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted April 5, 2004 Author Share Posted April 5, 2004 I'm not sure I understand why that would be safer, at least as long as I'm sure (and I am) there's no chance of other hostiles nearby in this particular town. Am I missing something? -spyderbytes Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted April 5, 2004 Share Posted April 5, 2004 When you get into the realm of summons, confusion, charming, etc. (and it can be items that do this, not just monsters), that call will not return the values that you intend it to. Also, when reusing the script, you'll want something that will work in all cases. Link to comment Share on other sites More sharing options...
Garrulous Glaahk spyderbytes Posted April 6, 2004 Author Share Posted April 6, 2004 Hmmm... good point, so I changed it. Thanks for the tip! -spyderbytes Link to comment Share on other sites More sharing options...
Recommended Posts