Jump to content

Basic scripting question


Insolent

Recommended Posts

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...