I've posted on here before about Rom24b6 but after sometime I found a Rot1.4 that I much prefer. Added olc to it and some small things. I added Vassago's quest system (V2.03) and it works fine. Object quests are working great and mobile quests are functioning. I just have, what I think, is a small problem. When I get a quest for a mobile, all mobiles of the same name get flagged as [TARGET]. I don't have very much programming/coding experience so I can't figure this out.
ex:
[TARGET] A small bunny pokes from bush to bush.
[TARGET] A small bunny pokes from bush to bush.
[TARGET] A small bunny pokes from bush to bush.
Other than this slight problem, the quest system is working fine.
Okay, bad wording on my part. All the mobs with the same vnum are being flagged with the [TARGET] bracket. How can I make it so that only 1 mob is getting the flag? I mean, if the questmaster says for personA to go to the sw corner of the newbie arena and kill a boar, I want them to go to that place and not kill the first boar they come across.
Unfortunately, Vassago's Quest snippet has some issues to begin with. While it doesn't count a kill unless it's the very last one you make against a particular mob, but you also can't have multiples kills against that mob in your khistory. It really needs quite a bit of reworking. Thoughm as Zeno pointed out, for the way it stands right out of the box, so to speak, the result you're seeing is working as written.
So you want the code to point to a certain part of an area? I'm not sure if that'll be easy. Just one room would be easy I suppose, but a certain part of an area...
No, Zeno, the "sw corner of the newbie arena" sounds like a room name, I think his issue is that he wants only one mob assigned for the quest, flagged as [TARGET], and not all the other mobs that match that vnum. But I don't think the quest snippet (or his code, for that matter) is going to know the difference between two mobs that have the same vnum unless he's having it flag that particular mob with an act_flag or something to single it out instead of just randomly picking a mob by vnum.
Yes, it seems like it shouldn't be too hard to make a pointer to the target mob. Seems like the most natural approach to me, in any case. You might want to have a list of pointers on the mob that point to people who point to it, just for cross-referencing. (It means a little more maintenance, of course, but hey, that's how these things work.)
Thanks to everyone for the idea about the pointers. I just had to make a "quest_target" and added that in and it seems to be working the way I want it to.