Please can someone help me with a quest I am doing for I.S.Norden? I need to code it so that the player is rewarded with a new item, the Fruit of Life. However, this fruit has a new sval, and lua won't accept it. Does anybody know the correct syntax, or a way around this problem?

Thanks from Cosmic Gerbil

CosmicGerbil It's OK, I.S. Norden told me how to do this. You have to define the sval, by putting

SV_FRUIT_OF_LIFE = numerical sval in k_info.txt

So, for this example, the sval of Fruit of Life is 44.

So if you put the code in the quest (I put it at the top), then your script will be able to generate the correct item :)

Module Developers Discussion/help needed with sval in quests (last edited 2006-01-22 14:14:43 by host86-134-95-90)