Garrulous Glaahk bigblue Posted September 1, 2004 Share Posted September 1, 2004 i have a problem: i have a door which should be locked until the party accepts a quest. so i set the memory cells of the door as follows: cell0: 200 cell1: 0 cell2: 0 cell3: 2 and this is the part of my dialogue script: begintalknode 34; state = 13; personality = 12; nextstate = 13; condition = 1; question = "Ok, let's gain wisdom!"; text1 = "_Come to me when you succeed._"; action = SET_SDF 0 2 1; action = END_TALK; code = toggle_quest(1,1); break; i have to mention that the locked door is NOT in the same town! what is wrong? Link to comment Share on other sites More sharing options...
Magnificent Ornk Kelandon Posted September 1, 2004 Share Posted September 1, 2004 Oh. Wait. You have two actions in your node. That's no good. Set the flag in your code. That is, Code: begintalknode 34; state = 13; personality = 12; nextstate = 13; condition = 1; question = "Ok, let's gain wisdom!";text1 = "_Come to me when you succeed._"; code =set_flag(0,2,1); toggle_quest(1,1);end();break; Link to comment Share on other sites More sharing options...
Garrulous Glaahk bigblue Posted September 2, 2004 Author Share Posted September 2, 2004 ok, i'll try this. didn't know, that you can do the same thing in the code. is it always bad to have actions together with code? why is there made a difference between action and code if it can do the same? Link to comment Share on other sites More sharing options...
Garrulous Glaahk Crunchy Frog Posted September 4, 2004 Share Posted September 4, 2004 Actions together with code is fine. It's TWO actions at once that won't work. I don't really know for sure why Jeff put actions in as well as calls. I suspect that he did it because actions are easier to use; you don't need to learn Avernumscript to use them. Link to comment Share on other sites More sharing options...
Easygoing Eyebeast *i Posted September 4, 2004 Share Posted September 4, 2004 I suspect it's more for backward compatability with Blades of Exile scenarios where you had the dialogue nodes which can do actions. Also, it makes things like innkeepers easier. I don't know why Jeff didn't import healers into the mix, however. Link to comment Share on other sites More sharing options...
Magnificent Ornk nikki. Posted September 7, 2004 Share Posted September 7, 2004 It's much easier and quicker to type in ... action = set_sdf 0 2 1; then... code = set_flag(0,2,1); break; And healers? It's much easier to add it into the code part of a script. And, healers can now give discounts to regular customers! Link to comment Share on other sites More sharing options...
Recommended Posts