Cacowad Posted November 19, 2012 i don't know if this is the correct place to report this... anyway i worte a simple code for an ammo shop, and there is an error when it come to number the pages of the script: here comes the code: the missing page is evidenced. namespace = "Strife"; include = "SCRIPT00"; conversation { actor = 8; page { name = "shop"; dialog = "welcome back"; choice { text = "i need ammo"; nextpage = 2; closedialog = false; } } page { name = "shop"; dialog = "which one?"; choice { text = "bullets"; nextpage = 3; closedialog = false; } choice { text = "shells"; nextpage = 4; closedialog = false; } choice { text = "rockets"; nextpage = 5; closedialog = false; } choice { text = "cells"; nextpage = 6; closedialog = false; } page { } page { name = "shop"; dialog = "how many?"; choice { text = "10 bullets"; cost { item = 65; // Item that is required for this option. amount = 1; // Minimum amount of the item needed. } displaycost = true; yesmessage = "purchased 10 bullets"; nomessage = "not enought souls"; giveitem = 43; // Gives the specified item upon success. nextpage = 3; } choice { text = "50 bullets"; cost { item = 65; amount = 5; } displaycost = true; yesmessage = "purchased 50 bullets"; nomessage = "not enought souls"; giveitem = 44; // Gives the specified item upon success. nextpage = 3; } choice { text = "100 bullets"; cost { item = 65; amount = 10; } displaycost = true; yesmessage = "purchased 100 bullets"; nomessage = "not enought souls"; giveitem = 66; nextpage = 3; } choice { text = "have you something else?"; nextpage = 1; } } page { name = "shop"; dialog = "how many?"; choice { text = "4 shells"; cost { item = 65; amount = 2; } displaycost = true; yesmessage = "purchased 4 shells"; nomessage = "not enought souls"; giveitem = 47; nextpage = 4; } choice { text = "20 shells"; cost { item = 65; amount = 4; } displaycost = true; yesmessage = "purchased 10 shells"; nomessage = "not enought souls"; giveitem = 48; nextpage = 4; } choice { text = "40 shells"; cost { item =65; amount = 20; } displaycost = true; yesmessage = "purchased 50 shells"; nomessage = "not enought souls"; giveitem = 67; nextpage = 4; } choice { text = "have you something else?"; nextpage = 1; } } page { name = "shop"; dialog = "how many?"; choice { text = "1 roket"; cost { item = 65; amount = 1; } displaycost = true; yesmessage = "purchased 1 rocket"; nomessage = "not enought souls"; giveitem = 45; nextpage = 5; } choice { text = "5 rokets"; cost { item = 65; amount = 5; } displaycost = true; yesmessage = "purchased 5 rokets"; nomessage = "not enought souls"; giveitem = 46; nextpage = 5; } choice { text = "10 rokets"; cost { item = 65; amount = 10; } displaycost = true; yesmessage = "purchased 10 rokets"; nomessage = "not enought souls"; giveitem = 68; nextpage = 5; } choice { text = "have you something else?"; nextpage = 1; } } page { name = "shop"; dialog = "how many?"; choice { text = "20 cells"; cost { item = 65; amount = 4; } displaycost = true; yesmessage = "purchased 20 cells"; nomessage = "not enought souls"; giveitem = 41; nextpage = 6; } choice { text = "40 cells"; cost { item = 65; amount = 8; } displaycost = true; yesmessage = "purchased 40 cells"; nomessage = "not enought souls"; giveitem = 69; nextpage = 6; } choice { text = "100 cells"; cost { item = 65; amount = 20; } displaycost = true; yesmessage = "purchased 100 cells"; nomessage = "not enought souls"; giveitem = 42; nextpage = 6; } choice { text = "have you something else?"; nextpage = 1; } } } hope it helped. 0 Share this post Link to post
Blastfrog Posted November 19, 2012 Cacowad said:i don't know if this is the correct place to report this... You might want to try the ZDoom forums. 0 Share this post Link to post
Springy Posted November 19, 2012 Have you tried the latest SVN build? The bug could've been solved in that. EDIT: http://svn.drdteam.org/zdoom/ 0 Share this post Link to post
Cacowad Posted November 20, 2012 Sodaholic said:You might want to try the ZDoom forums. that's why i should never post anything around midnight... anyway, i must be slightly daltonic somehow, becouse i can't pass the spambot test... the zdoom forum board isn't pink or somehow reddish? Springy said:Have you tried the latest SVN build? The bug could've been solved in that. EDIT: http://svn.drdteam.org/zdoom/ yes, already tried, the bug is still there. 0 Share this post Link to post
Blzut3 Posted November 20, 2012 You have a missing closing brace on your second page and then a odd empty third page. 0 Share this post Link to post
Cacowad Posted November 20, 2012 you nailed it. this mean that this post is worth of being cancelled and sent to post hell. i really don't know why i didn't notice it. sorry for the useless post. 0 Share this post Link to post