ID:160546
 
Im making a quest system and putting an exclamation mark over NPCs heads that you can either get a quest from or have completed a quest for. What Im having trouble with is reapplying the exclamation marks to the NPCs after they log out. I know I could right a proc to cycle though all the quest givers and check and see if they have gotten the quest or not, but was wondering if there was an easier way to save it. Ive tried to save the clients images and reload it but that didnt seem to work (i might have done it wrong if that is suppose to work). Any help would be great cause i have a lot of quest and quest givers so i dont want to have to write a huge proc to give them all out. Different quest are available at different levels.
Please read the comments made:
mob
var
quest_npc_path // will store the /path/ of the next NPC needed to contact, when logged out.
tmp // The following are unsavable
mob/quest_npc // A reference of the next quest NPC
image/quest_point = image('Exclaim.dmi', layer = 10) // image() can be shown only to whoever it is sent to with the image being at the location specified (look up image proc). So whenever we change the quest_npc, the exclamation point will move to that NPC right away.

Login()
..()
src << quest_point // displaying the image() to the mob
quest_point.loc = quest_npc // Will show that image to whatever quest_npc is set to.
if(quest_npc_path) // If the path of the next NPC was saved
quest_npc = locate(quest_npc_path) in world // It will locate that NPC
quest_npc_path = null

Logout() // Try to combine as much procedures as you can into one, especially Logout().
if(quest_npc) // If the next quest npc is defined
quest_npc_path = quest_npc.type // sets the path of the NPC
[Save stuff, other logout stuff]
del src


<3 image()
In response to GhostAnime
Im familiar with images thats what im using, but I have lots of quest available at one time and they can have as many quests at one time as they want. Im trying to get the quest system setup similar to how WoW has it. So there isnt just one image theres a lot anywhere up to 20-30 at one time.
In response to NightJumper88
list()s can be helpful then ;/ I don't want to show any mob-referencing variables being saved as that usually leads to problems :/
Ok so I still have no idea how to do this or what needs to be done, any help would be appreciated