Rotghroth Rhapsody Contra Posted July 15, 2005 Share Posted July 15, 2005 Even though many have posted about this before, I have never truely undestood how you do it. I have never had a reason to do it, but now I do. I have misplaced an item (Putrefied Gauntlets), and I want to it back. How do I add it? I got the Item code (Someone posted it before on the board) Quote Link to comment Share on other sites More sharing options...
Seasoned Roamer Indeterminatus Posted July 15, 2005 Share Posted July 15, 2005 You need to use the function "give_reward(num)" where num is the code of the item (in the case of your gloves 345) All you need to do is to ad "reward_give(345);" in a dialogue script (in the "code=" section). Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody Contra Posted July 15, 2005 Author Share Posted July 15, 2005 Can I type give_reward345 in the Shift+D box, or is there somewhere else? Quote Link to comment Share on other sites More sharing options...
Seasoned Roamer Indeterminatus Posted July 15, 2005 Share Posted July 15, 2005 I'm not very informed about the cheat codes :-/ I was talking of the scripts... in which zone are you precisely? Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody Contra Posted July 15, 2005 Author Share Posted July 15, 2005 Fort Wilton. Which program do I need to open the script with? Quote Link to comment Share on other sites More sharing options...
Magnificent Ornk Drakefyre Posted July 15, 2005 Share Posted July 15, 2005 You need a text editor like TextEdit or NotePad or something. Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody Contra Posted July 15, 2005 Author Share Posted July 15, 2005 I got that (NotePad), and I found the script, I am just really unsure where to write anything. I don't want to emss anything up. More detailed help, please? Quote Link to comment Share on other sites More sharing options...
Well-Actually War Trall Dolphin Posted July 16, 2005 Share Posted July 16, 2005 There are a few places you could put reward_give(). Here's how to put it into a talknode… Code: begintalknode 79; state = 73; nextstate = 70; condition = get_flag(2,8) == 0 && get_stat(20) >= 4; question = "You should donate something to me now. I am a Shaper, and I require your aid."; text1 = "Hinman frowns and looks down at the floor. He knows that outsiders must give aid to Shapers when requested. Then he fetches a pair of crystals and hands them to you."; text2 = "_Here, young Shaper. I hope these help._"; code = set_flag(2,8,1); reward_give(120); reward_give(121); break; A less complicated talknode… Code: begintalknode 1; state = -1; personality = 0; nextstate = -1; condition = 1; question = "Please give me a pair of gloves"; text1 = "You receive a pair of gloves"; code = reward_give(345); break: Edit: fix Quote Link to comment Share on other sites More sharing options...
Seasoned Roamer Indeterminatus Posted July 16, 2005 Share Posted July 16, 2005 For example you could open z33fortwiltdlg.txt and change this: Code: begintalknode 10; state = -1; nextstate = -1; condition = 1; question = "special"; text1 = "The sign says:"; text2 = " LONG TERM STORAGE!"; text3 = " Stay out! Alarms are in place!"; Into this: Code: begintalknode 10; state = -1; nextstate = -1; condition = 1; question = "special"; text1 = "The sign says:"; text2 = " LONG TERM STORAGE!"; text3 = " Stay out! Alarms are in place!";code = code = reward_give(345);break; Then you'll just have to click on the sign that usually says "LONG TERM STORAGE" to get your gloves. Quote Link to comment Share on other sites More sharing options...
Rotghroth Rhapsody Contra Posted July 16, 2005 Author Share Posted July 16, 2005 It's not working. I have having a MAJOR issue trying to figure out where to put all the spaceing, and when to press enter for the next line, since either you guys have added that (Because it looks like this for me): begintalknode 10; state = -1; nextstate = -1; condition = 1; question = "special"; text1 = "The sign says:"; text2 = " LONG TERM STORAGE!"; text3 = " Stay out! Alarms are in place!"; or the forum have scrambled it up. I tried just adding the words, but apparently any single space error makes the game flipp out, and it's sometimes hard to see if there should be "Code=" or "Code =" and how many spaces I am to put on the line under that, so that the "o" in the second "code" fits in right under the "=" in the first "code" (As you have posted it.) Edit: I solved the issue myself with some constructive thinking. I used the tab key, and added a code command and a break command, so that it looks like this: begintalknode 10; state = -1; nextstate = -1; condition = 1; question = "special"; text1 = "The sign says:"; text2 = " LONG TERM STORAGE!"; text3 = " Stay out! Alarms are in place!"; code = reward_give(345); break; Why I would need a first "code" that said nothing beats me. Perhaps you just typed that out wrong? And perhaps your TextEdit or the way you copy make the script look curved and with strange spaceings, while it is actually just straight (as I copied.) Quote Link to comment Share on other sites More sharing options...
Hatchling Cockatrice Lilith Posted July 16, 2005 Share Posted July 16, 2005 The original scripts do have indentations (the "strange spacings" at the start of the line). They're not important for the function of the script, but they make it easier to read. It's probable that whatever text editor you're opening the scripts in is ignoring the indentation for some reason. Quote Link to comment Share on other sites More sharing options...
Seasoned Roamer Indeterminatus Posted July 16, 2005 Share Posted July 16, 2005 Quote: Why I would need a first "code" that said nothing beats me It's not exactly like this The scripting language used in the Geneforge series requires to end commands with a ; This means that code = give_reward(345); break; is the same as code = give_reward(345); break; Just think that code means that some sort of script must be executed and break means that the scripting has ended. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.