Insolent Posted March 4, 2010 Share Posted March 4, 2010 Hello. I'm quite new to oblivion scripting, but i've got some experience with programming, so i understand most of the logic involved. But i've run into a pesky problem in a little script i'm making.I want to display a sequence of Messageboxes with some text (The text was too long for one line)But when running it, only the last box gets displayed.Any suggestions? Link to comment Share on other sites More sharing options...
Vagrant0 Posted March 4, 2010 Share Posted March 4, 2010 but i've got some experience with programming, so i understand most of the logic involved. Any suggestions?Yes, forget most of the programming you know. TES-script tends to be harder to work with when you know how to use other languages because you instinctively try to replicate the syntax or mistake the behavior of a function for being non-exclusive. If you're using messageboxes, your best option would probably be some sort of system that switches between gamemode and menumode blocks, using a variable to keep track. Or something like:short counter begin gamemode if counter == 0 messagebox "This message shows first" set counter to 1 elseif counter == 2 messagebox "This message shows second" set counter to 3 elseif counter == 4 messagebox "This message shows third" set counter to 5 elseif counter == 6 messagebox "This message shows last" set counter to 7 endif end begin menumode if counter == 1 set counter to 2 elseif counter == 3 set counter to 4 elseif counter == 5 set counter to 6 elseif counter == 7 set counter to 8 endif end By this, the messages will show in order, and display the next one as soon as the current one is closed. Link to comment Share on other sites More sharing options...
Insolent Posted March 6, 2010 Author Share Posted March 6, 2010 Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts