Gort Posted September 20, 2007 Share Posted September 20, 2007 how does console work, anyway? Link to comment
theacefes Posted September 20, 2007 Author Share Posted September 20, 2007 She is console spawned perfectly and her dlg goes without any mess ups. Link to comment
Gort Posted September 20, 2007 Share Posted September 20, 2007 do you add anything besides this block to the script? Where the variable is set? Link to comment
jastey Posted September 20, 2007 Share Posted September 20, 2007 (Please make the spwan EXTEND_BOTTOM again, if you haven't already. I would recommend setting a check variable, to prevent multiple spawning: IF Global("SarahQuest","GLOBAL",1) Global("AnnaSpawn","GLOBAL",0) THEN RESPONSE #100 SetGlobal("AnnaSpawn","GLOBAL",1) CreateCreature("ANNA",[2256.1354],7) END Further I would recommend using a prefix for your mod, and assign variables and file names with it.) And now to your original question (sorry for th epatronizing, but I think it's helpful remarks): For occasions where she doesn't spawn, what does CLUAConsole:GetGlobal("SarahQuest","GLOBAL") give? And, of course your spawn variable, in my example "AnnaSpawn"? As far as I know, scripts get executed every time, and changes to the script that are added after the area was already visited get performed. I never had problems that stated otherwise. It's different for anything else that is changed in the .are via .tp2, these changes do not show if the area is already in the save/cache. But for testing, if you want to make sure, it's always best to load a save where you haven't visited the area before. Link to comment
theacefes Posted September 20, 2007 Author Share Posted September 20, 2007 All the globals necessary for her to spawn are set correctly. I think my problem could be a combination of not having a spawn variable as well as not using a game where I havent visited AR1000 yet. I shall test it now...thanks! Link to comment
theacefes Posted September 20, 2007 Author Share Posted September 20, 2007 Okay, I used a game where I haven't gone to AR1000 yet. She spawned fine, but there were 3 of her. Link to comment
Gort Posted September 20, 2007 Share Posted September 20, 2007 I don't know, really. This is just not supposed to happen. The only thing I can think of is full reinstall Link to comment
theacefes Posted September 20, 2007 Author Share Posted September 20, 2007 Hahah perhaps it is my install? (Wonders if this could be the reason for Sarah's OTHER big bug) EDIT: Heh you beat me to it! Link to comment
Ieldra Posted September 20, 2007 Share Posted September 20, 2007 About the multi-spawning: do you still use the code as quoted in your first post? Then you don't set the global to something that will prevent the spawning code from running more than once. I'd have expected something like this: IF Global("SarahQuest","GLOBAL",1) THEN RESPONSE #100 CreateCreature("ANNA",[2256.1354],7) SetGlobal("SarahQuest","GLOBAL",2) END Or, more stringently: IF Global("SarahQuest","GLOBAL",1) Global("AnnaSpawn","AR1000",0) THEN RESPONSE #100 CreateCreature("ANNA",[2256.1354],7) SetGlobal("AnnaSpawn","AR1000",1) END Link to comment
CoM_Solaufein Posted September 20, 2007 Share Posted September 20, 2007 no, it shouldn't require a new game It does if you have visited that area already. CoM_Solaufein is right - and check that your cache folder is empty, too. Gorilym and I spent three full modding days (or more, I think) reworking a Dynaheir's Quest cutscene, because nothing we did seemed to apply, until we both realized that we were loading from saves in the area we wanted the changes made - so everything had already had its script saved in the savegame. that's wrong. Afraid not. But believe whatever you wish. I have done this a great many times before. Link to comment
CoM_Solaufein Posted September 20, 2007 Share Posted September 20, 2007 Okay, I used a game where I haven't gone to AR1000 yet. She spawned fine, but there were 3 of her. Check the area script file to see that there was only one script block for her to spawn in, considering that you have tried different ways to make it happen. Link to comment
Gort Posted September 20, 2007 Share Posted September 20, 2007 Afraid not. But believe whatever you wish. I have done this a great many times before. believe or not, I've verified it with my own hands. BTW, if you open savegame with NI, you won't find .bcs there. Link to comment
theacefes Posted September 20, 2007 Author Share Posted September 20, 2007 IF Global("SarahQuest","GLOBAL",1) Global("AnnaSpawn","AR1000",0) THEN RESPONSE #100 CreateCreature("ANNA",[2256.1354],7) SetGlobal("AnnaSpawn","AR1000",1) END I shall try this. @ Gort: CoM_Solaufein has been modding for quite a while, and I'm going to assume you have been as well, but if you have, you would know that different code works for different people...trust me I know. But the point isn't to prove that your way works, but getting a working solution at all. I just want for my NPC to spawn, thus why I started this thread. All help is appreciated greatly, I can't state that enough. Again, thanks guys. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.