Difference between revisions of "Talk:MessageBox Tutorial"
Hi James Joyce!
imported>Haama (Formatting) |
imported>Haama (Hi James Joyce!) |
||
Line 169: | Line 169: | ||
You click Assaults and you will get a sub menu that will ask you what do you want to set on Assaults and it will cast a spell that will call a '''messagebox''' that give you 9 options being -1 -10 -100 All +1 +10 +100 back and Quit. Back will make it go back to the main prompt IE the main script again to allow you to main another choice on the listings. I hated that I had to go this rout but when you have a script that just doing one option like messing with the Assaults list with just scripting the choices and using the formulas of resetting them or adding and taken away plus calling the right scripts takes up just a little over 200 lines and that is just one part of 34 '''ModPCMiscStat''' plus two for fame and infamy which is 36 options all together and each option has 9 sub menus which has there own calls and checks which are in place to keep the user from breaking something for example if something goes negative it will not just got to say if you by mistake went to -1 the code will compile it and set you to '''-240000''' something So I placed safeguards to prevent this from happening in the first place and to warn the user of this and causing it to kill that function and go back to the choices menu allowing them to try again with one of the other options that might work.<br> | You click Assaults and you will get a sub menu that will ask you what do you want to set on Assaults and it will cast a spell that will call a '''messagebox''' that give you 9 options being -1 -10 -100 All +1 +10 +100 back and Quit. Back will make it go back to the main prompt IE the main script again to allow you to main another choice on the listings. I hated that I had to go this rout but when you have a script that just doing one option like messing with the Assaults list with just scripting the choices and using the formulas of resetting them or adding and taken away plus calling the right scripts takes up just a little over 200 lines and that is just one part of 34 '''ModPCMiscStat''' plus two for fame and infamy which is 36 options all together and each option has 9 sub menus which has there own calls and checks which are in place to keep the user from breaking something for example if something goes negative it will not just got to say if you by mistake went to -1 the code will compile it and set you to '''-240000''' something So I placed safeguards to prevent this from happening in the first place and to warn the user of this and causing it to kill that function and go back to the choices menu allowing them to try again with one of the other options that might work.<br> | ||
--[[User:Raziel23x|Raziel23x]] 07:42, 26 August 2007 (EDT) | --[[User:Raziel23x|Raziel23x]] 07:42, 26 August 2007 (EDT) | ||
:I was under the assumption that ShadowDancer is Kyoma? So, that should be the same(ish) script that you both tried (not that they didn't work)? | |||
:Not quite the right place for it (no, that would be on an extra in the article...), but you can allow the player to choose any number by giving them the options "Cancel" "-10 (-12 to -8)" "-5 (-7 to -3)", "-2", "-1" "0"... and returning to the menu when the player selects the ranged numbers (or until they press 0 or cancel). | |||
:--[[User:Haama|Haama]] 10:28, 26 August 2007 (EDT) |