Hi, can anybody help me with a problem I have with birth quests. I can put them in, but what I want to do is make it so that each different race has its own individual birth quest. This is for my new module Gerband Quest.

Thanks from CosmicGerbil.

NeilStevens: Older versions of ToME had a bug where HOOK_BIRTH isn't called. Try HOOK_BIRTH_OBJECTS instead

CosmicGerbil I was working on T.o.M.E 2.3.2. I think it had HOOK_BIRTH_OBJECTS. I tried putting the following line in player lua:

if get_race_name == "elemental" then

And then I added the birth quest info in. However it did not work, it gave an error. I'm not sure what I'm doing wrong.

TheFalcon: Get race name is a function, so you need to have brackets after it:

function birth_quests()
   if get_race_name() == "Elemental" then
      quest(QUEST_NAME).status = QUEST_STATUS_TAKEN
   end
end
add_hook_script(HOOK_BIRTH_OBJECTS, "birth_quests", "birth_quests")

(Hopefully that's the right syntax). I think that the string for the race name is case sensitive, so that's something else you might want to check.

CosmicGerbil Great, thanks :D I will check my upper and lower case, because I had trouble with that in one of my quests.

CosmicGerbil It works! Now I can continue with Gerband Quest :D

Module Developers Discussion/problem with birth quests (last edited 2005-11-07 14:16:03 by webcache-10)