Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

New Premium Module: Tyrants of the Moonsea! Read More
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Random Item Drop Trick!

I don't know if this is still a thing in the new version, but here's a trick I stumbled on back in the old days that may be useful to folks who are building....

I had a map in which my script placed "pick-up-able" items at random locations. I quickly discovered that sometimes the game would drop it on the top of a tree or somesuch that the players couldn't get to! Here's how I solved it:

I discovered that although the engine will put an item on a non-accessible place, it wouldn't allow NPCs to be put in such locations. So I created an invisible NPC that I called "Placer" or some such. Then when the script needed to put an item on the ground, I'd have it first put Placer there. He'd automatically move to the accessible part of the map, I'd then get his location, kill him, and then put the item at that location.

It worked smashingly!

squattingmonk

Comments

Sign In or Register to comment.