djmystro Posted January 14, 2011 Author Share Posted January 14, 2011 If I change the script type to object it then fails to recognise the monster variable from the previous script. (Error warning: line 4, Unknown variable '00FrankieQuest01.monster1')The first script is attatched to the quest and so is a quest script. If I change this I can no longer select it in the quest window. Should I create a seperate script for this function and if so what do I attch it to? Link to comment Share on other sites More sharing options...
davidlallen Posted January 15, 2011 Share Posted January 15, 2011 Many people have reported syntax errors when they use topic names or variables that start with numbers. If you find scripts are disappearing, that means they have syntax errors and you are not using geck powerup. These two combine to give the behavior you are seeing. Link to comment Share on other sites More sharing options...
djmystro Posted January 15, 2011 Author Share Posted January 15, 2011 I think I just solved that problem, (the Stage menu result box deleting all contents) if i'm not mistaken it was searching out the name of my quest rather than the editor id which was slightly different. Changing that seemed to solve the problem. I'm using the powerup Geck now (was not earlier) and it no longer displays errors (did once for a typo, thats it).Unfortunately that did not solve the second problem with the unsaving script which still won't recognise the variable '00FrankieQuest01.monster1 Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted January 15, 2011 Share Posted January 15, 2011 I think he is right about quests starting with numeric characters.Try changing the questID to aaFrankieQuest01 instead and see if it works. Link to comment Share on other sites More sharing options...
djmystro Posted January 15, 2011 Author Share Posted January 15, 2011 Yeah, nice work, I almost missed that, and it was the problem. Saves fine now so I can move on to the next one. Thanks for all assistance, credits due on next update. Link to comment Share on other sites More sharing options...
rickerhk Posted January 15, 2011 Share Posted January 15, 2011 What happens is the script compiler can interpret the EditorID as a FormID if the EditorID begins with a number, and therefore it won't find the object.http://www.cipscis.com/fallout/tutorials/beginners.aspx Link to comment Share on other sites More sharing options...
djmystro Posted January 15, 2011 Author Share Posted January 15, 2011 OK, I have everything working great now, the quest has come together nicely and I'm getting the hang of the script commands. I have one more problem though. I can't figure out how to remove topics at certain specific quest stages. I would assume there is a script command for this (e.g. removetopic 00FrankieTopic01) but I can't find it. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted January 15, 2011 Share Posted January 15, 2011 Set a condition on the topic, such as getstage. Then when it's not that stage anymore, the topic won't show up anymore. Link to comment Share on other sites More sharing options...
davidlallen Posted January 15, 2011 Share Posted January 15, 2011 davidlallen: thank you Professor Modstein. I will keep this in mind when coding tescript for my UNIVAC 1107.Snap! Can your quest variables do this trick? If I want to test the middle of my long quest mod, I can use "setstage" commands in the console to set up a situation where, say, monster1 and monster3 are dead. Is it possible to set quest variables in the console? Most of the name data is not stored, so I am not sure you can set variables in the console. But I find setting stages in the console to be a great aid in testing. Link to comment Share on other sites More sharing options...
Quetzlsacatanango Posted January 15, 2011 Share Posted January 15, 2011 :)You can. I think you have to be using FOSE in order to be able to type in the EditorID for the quest. Otherwise you need the FormID (xx234567). Link to comment Share on other sites More sharing options...
Recommended Posts