MessageBox conditional items

Post » Tue Jul 07, 2015 11:51 pm

Hi again!

I was wondering if one could create a new messagebox and apply it's conditions form to change how many items are displayed amongst the possible answers?

Example:

integer BarrelContent has a maximum value of 800. The messagebox asks the player if they would like to add 100,200,300,400,500,600,700 or 800 to the initial value of the BarrelContent integer. I would like the messagebox to check for the number stored in the integer before popping up, and limit the possible choices to those items that, if added, do not go over the maximum value of the integer. So if BarrelContent is initially 600, I only want the messagebox to display 100 and 200 as a possible choice. But if it's zero, I'd like it to show the full range of choices from 100 to 800.

Can this be done?

Thanks so much, and sorry for all the questions! Here's a cake for you. :cake:

User avatar
April D. F
 
Posts: 3346
Joined: Wed Mar 21, 2007 8:41 pm

Post » Wed Jul 08, 2015 7:51 am

The way round this would be to set a global variable to that number, then show the message box. You would then condition the buttons to only show when that global value is a certain number.

You can't use text replacement in message buttons, only the message itself.

This will work fine though. You'll just have to create enough buttons to cover the values you want.
User avatar
jeremey wisor
 
Posts: 3458
Joined: Mon Oct 22, 2007 5:30 pm

Post » Wed Jul 08, 2015 6:12 am

According to the http://www.creationkit.com/Message page each button can have its own list of conditions which must be satisfied for that button to show. As BBD mentioned above, you will be able to condition your buttons for the appropriate value of your integer.
You can use http://www.creationkit.com/Show_-_Message#Notes (text replacement) to print the value of BarrelContent in your messages.

Spoiler
Partial ninja ;)

User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm


Return to V - Skyrim