thebigba Posted December 30, 2008 Share Posted December 30, 2008 this is the script SCN Ilostmymind short button Begin onactivatemessagebox "I am losing my mind, Is there a way to fix this?", "Yes,take oblivion cs and burn it.", "yes, uninstall oblivion and forget about gaming." "No, you're a psychopath and lost your mind years ago , there is no hope for you.", "nevermind" If getbuttonpressed == 0Thebigba.moveto Imperial City mind recovery ward. Else if getbuttonpressed == 1thebigba.getisdead Else if getbuttonpressed == 2 thebigba.coc toddtest else if getbuttonpressed = = 3 end ifend I need help... Link to comment Share on other sites More sharing options...
ov3rwhelming Posted December 31, 2008 Share Posted December 31, 2008 Ummm...?Why is this in mod troubleshooting? Link to comment Share on other sites More sharing options...
LoginToDownload Posted December 31, 2008 Share Posted December 31, 2008 GetButtonPressed resets itself to -1 after you use the function. You're missing a "set button to GetButtonPressed" line, and you should probably have the check in GameMode. With everything in OnActivate, you'll have to activate it twice for there to be any effect. If you do set the check up in a GameMode block, you'll probably want to add a "choosing" variable so it doesn't pick up button presses from unrelated messageboxes. Set choosing to 1 in the OnActivate block, and set it back to 0 when it returns a button, with it only checking for buttons when it equals one. Also, GetIsDead doesn't do anything unless you assign it to a variable, and "elseif" and "endif" are one word. Link to comment Share on other sites More sharing options...
thebigba Posted December 31, 2008 Author Share Posted December 31, 2008 GetButtonPressed resets itself to -1 after you use the function. You're missing a "set button to GetButtonPressed" line, and you should probably have the check in GameMode. With everything in OnActivate, you'll have to activate it twice for there to be any effect. If you do set the check up in a GameMode block, you'll probably want to add a "choosing" variable so it doesn't pick up button presses from unrelated messageboxes. Set choosing to 1 in the OnActivate block, and set it back to 0 when it returns a button, with it only checking for buttons when it equals one. Also, GetIsDead doesn't do anything unless you assign it to a variable, and "elseif" and "endif" are one word. Congratulations, You just volunteered to be my help buddy...I need more insight into scripting, but am not seeing very many replies if any at all to posts I have made. Would you care to help in my problems with scripting? I don't learn as well from tutorials as I do from hands on but I have been doing both and still not getting very far :-) I need help, and you look like the person that knows what they are talking about. so what you think? Link to comment Share on other sites More sharing options...
LoginToDownload Posted December 31, 2008 Share Posted December 31, 2008 Umm, okay? I'll do what I can... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.