Posted: Tue Apr 08, 2008 5:25 am Post subject: help with lesson 2 for learning to script
I am having troble with lesson 2 variables. i did what it said and it is not working i am not sure why but it seems like it was not finshed. Can someone help me with it?
if your refering to the end of lesson 2 wich goes as folows:
Quote:
Once saved go to the module properties (File, View, Module Properties) and then look for the On Module Load Script field under Scripts. Click on the downward arrow in the field and then look for your new script in the list. Select the script and you will now see the name of the script in the On Module Load Script line so that it will run each time the module is loaded.
Now we need to add an NPC to our module and then add a conversation to it. Create a new conversation for our NPC and enter a line such as Have you seen my dog .
When the conversation is fired will be replaced by the variable know as goblins_dog, which equals to Zeus (i.e. Have you seen my dog Zeus).
Variables are important, and are the only means of determining whether most events have taken place or of changing/keeping track of different story states.
it is missing allot of info... how to you import the custom token into the script? ("have you seen my dog, <goblins_dog>?" is the primary thing... personaly i haven't figured it out yet and would like to know myself... it also doesn't explain how to create a npc and link the conversation to them. however both those i have learned from other tutorials... if ya have questions on those or some other part of lesson 2 i'd be glad to help ya
*** update ***
figured it out in the conversation box just put "have you seen my dog, <CUSTOM9999>?" in trying to figure out how to do it i changed the tag from whats in the tutorial to 9999, can't remember whats in the tutorial but gots it working....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum