Editing LeveledItem
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Link to TES4 Construction Set Wiki: [http://cs.elderscrolls.com/constwiki/index.php/Leveled_Item Leveled Item] | |||
A leveled item is an example of a [[:Category:Leveled Lists|leveled list]]. | A leveled item is an example of a [[:Category:Leveled Lists|leveled list]]. | ||
Line 7: | Line 9: | ||
These are the various settings that can be chosen on a leveled list of items: | These are the various settings that can be chosen on a leveled list of items: | ||
*'''Calculate from all levels <= PC's level:''' If checked, the level list will use any item at or below the player's level in the list. If not checked, it uses the closest item or items to the player's level, but not exceeding it. The lower threshhold is governed by the [[ | *'''Calculate from all levels <= PC's level:''' If checked, the level list will use any item at or below the player's level in the list. If not checked, it uses the closest item or items to the player's level, but not exceeding it. The lower threshhold is governed by the [[iLevItemLevelDifferenceMax]] setting. | ||
*'''Calculate for each item in count:''' If this list is in another leveled list with a count greater than zero, this checkbox determines if each item in the count is the same, or is recalculated. | *'''Calculate for each item in count:''' If this list is in another leveled list with a count greater than zero, this checkbox determines if each item in the count is the same, or is recalculated. | ||
*'''Use All:''' All the items on the list are added to the container or actor. If marked, this checkbox supercedes the other two. | *'''Use All:''' All the items on the list are added to the container or actor. If marked, this checkbox supercedes the other two. | ||
Line 26: | Line 28: | ||
|Name = iLevItemLevelDifferenceMax | |Name = iLevItemLevelDifferenceMax | ||
|Default = 0 | |Default = 0 | ||
|Description = When this setting has a non zero value, it specifies the maximum level range that will be considered when selecting items from leveled lists | |Description = When this setting has a non zero value, it specifies the maximum level range that will be considered when selecting items from leveled lists. It is not so easy to understand the behavior of this setting, so consider this example. | ||
You have a leveled list with an item at level 1, an item at level 10, an item at level 20, and "Calculate from all levels <= PC's level" is checked. When the setting is 0 and the player is level 20, actors given items using this list have a 33% chance to select each item, or in other words all items from all levels are considered. If the setting is changed to 1, then only the level 20 item is considered (because the difference between the level 20 item and the level 10 item is more than 1). If the setting is changed to 10, there is a 50% chance to select the level 10 item and the level 20 item. | You have a leveled list with an item at level 1, an item at level 10, an item at level 20, and "Calculate from all levels <= PC's level" is checked. When the setting is 0 and the player is level 20, actors given items using this list have a 33% chance to select each item, or in other words all items from all levels are considered. If the setting is changed to 1, then only the level 20 item is considered (because the difference between the level 20 item and the level 10 item is more than 1). If the setting is changed to 10, there is a 50% chance to select the level 10 item and the level 20 item. | ||
Line 39: | Line 41: | ||
== Scripted items with OnAdd blocks == | == Scripted items with OnAdd blocks == | ||
If a scripted item is added directly into an actor's inventory when the actor is spawned (by being present in the actor's inventory in the GECK | If a scripted item is added by a leveled list directly into an actor's inventory when the actor is spawned (by being present in the actor's inventory in the GECK), any OnAdd blocks for the item script will not execute. There is a workaround for this, and it is to use a GameMode block like this. | ||
<pre>short doonce | <pre>short doonce | ||
Line 61: | Line 63: | ||
end | end | ||
</pre> | </pre> | ||
[[Category:Items]] | [[Category:Items]] | ||
[[Category:Leveled Lists]] | [[Category:Leveled Lists]] |