Difference between revisions of "Final Fantasy VI: Steal Command Algorithm"

From Data Crystal
Jump to: navigation, search
m (Moving attribution to talk page (the only appropriate place for it.))
m (Constant Value)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{subpage|game=Final Fantasy VI}}
 +
==Steal Command Algorithm==
 +
# If monster has no items then you automatically fail to steal
 +
## <tt><b>StealValue = Your level + [[Final_Fantasy_VI:Steal_command_algorithm#Constant Value|Constant Value]] - monster's level</b></tt>
 +
# If you have a Sneak Ring equipped
 +
## <tt><b>StealValue *= 2</b></tt>
 +
# Steal value
 +
## If {{hex|StealValue ≤ 0}} then you fail to steal
 +
## If {{hex|StealValue ≥ 128}} then you automatically steal
 +
## If {{hex|StealValue < [[Final_Fantasy_VI:Steal_command_algorithm#Random Value|Random Value]]}} then you fail to steal, otherwise you successfully steal
 +
# You have a certain [[Final_Fantasy_VI:Steal_command_algorithm#Probability|Probability]] of getting a rare item, otherwise you get a common item
 +
# If the monster doesn't have an item to steal in that slot, then you fail to steal, otherwise you successfully steal that item
 +
# If you successfully steal an item, monster no longer has any item on both slots
  
===Steal Command Algorithm===
+
==Constant Value==
1 .If monster has no items then you automatically fail to steal
+
Offset: {{hex|0x23BBB}}<br>
 +
Default value: {{hex|0x32}}<br>
  
2. StealValue = Your level + [[Final_Fantasy_VI:Steal_command_algorithm#Constant Value|Constant Value]] - monster's level
+
<b>Example:</b><blockquote>
 +
Locke is at {{hex|level 9}} and monster at {{hex|level 5}}.<br>
 +
StealValue = {{hex|0x09 + 0x32 - 0x05}}<br>
 +
StealValue = <tt><b>0x36 ( = 54 )</b></tt></blockquote>
  
3. If you have a Sneak Ring equipped:
+
The higher that value, the lower are your chance to fail stealing.
StealValue -> StealValue * 2
 
  
4. If StealValue <= 0 then you fail to steal
+
==Random Value==
 +
Offset: {{hex|0x23BD0}}<br>
 +
Default value: {{hex|0x64}}<br>
  
4. If StealValue > = 128 then you automatically steal
+
The random value is picked within <tt><b>]0x00,0x64[ = 0x01,0x02,...,0x62,0x63}</b></tt><br>
  
4. If StealValue < [[Final_Fantasy_VI:Steal_command_algorithm#Random Value|Random Value]] then you fail to steal, otherwise you successfully steal
+
<b>Example:</b><blockquote>
 +
If the default value is changed to {{hex|0x09}} then step 4 is<br>
 +
If <tt><b>StealValue < [Value randomly picked within {1,2,...,8,9}]</b></tt> then you fail to steal</blockquote>
  
5. You have a certain [[Final_Fantasy_VI:Steal_command_algorithm#Probability|Probability]] of getting a rare item, otherwise you get a common item
+
The lower that value, the higher your chance to steal successfully.
 
 
6. If the monster doesn't have an item to steal in that slot, then you fail to steal, otherwise you successfully steal that item
 
 
 
7. If you successfully steal an item, monster no longer has any item on both slots
 
 
 
===Constant Value===
 
offset : 0x23BBB<br>
 
default value : 0x32<br>
 
 
 
 
 
Example:<br>
 
Locke is at level 9 and monster at level 5.<br>
 
StealValue = 0x09 + 0x32 - 0x05<br>
 
StealValue = 0x36 ( = 54 )
 
 
 
 
 
The higher that value, the lower are your chance to fail stealing.
 
===Random Value===
 
offset : 0x23BD0<br>
 
default value 0x64<br>
 
  
The random value is picked within ]0x00,0x64[ = {0x01,0x02,...,0x62,0x63}<br>
+
==Probability==
 +
Offset: {{hex|0x23BDD}}<br>
 +
Default value: {{hex|0x20}}<br>
  
Example:<br>
+
You have a chance of <tt><b>0x20 / 0x100 ( = 1/8 )</b></tt> to steal a rare item
If the default value is changed to 0x09 then step 4 is<br>
 
if StealValue < [Value randomly picked within {1,2,...,8,9}] then you fail to steal
 
  
The lower that value, the higher your chance to steal successfully.
+
<b>Example:</b><blockquote>
===Probability===
+
If the default value is changed to {{hex|0x80}}<br>
offset : 0x23BDD<br>
+
You have a chance of <tt><b>0x80 / 0x100 = 50%</b></tt> to steal a rare item.</blockquote>
default value 0x20<br>
 
 
 
You have a chance of 0x20 / 0x100 ( = 1/8 ) to steal a rare item
 
 
 
Example:<br>
 
If the default value is changed to 0x80<br>
 
You have a chance of 0x80 / 0x100 = 50% to steal a rare item.
 
  
 
The higher that value, the higher are your chance to steal a rare item.
 
The higher that value, the higher are your chance to steal a rare item.
 
[[Category:Final Fantasy VI|Steal command algorithm]]
 

Latest revision as of 16:59, 23 June 2016

Steal Command Algorithm

  1. If monster has no items then you automatically fail to steal
    1. StealValue = Your level + Constant Value - monster's level
  2. If you have a Sneak Ring equipped
    1. StealValue *= 2
  3. Steal value
    1. If StealValue ≤ 0 then you fail to steal
    2. If StealValue ≥ 128 then you automatically steal
    3. If StealValue < Random Value then you fail to steal, otherwise you successfully steal
  4. You have a certain Probability of getting a rare item, otherwise you get a common item
  5. If the monster doesn't have an item to steal in that slot, then you fail to steal, otherwise you successfully steal that item
  6. If you successfully steal an item, monster no longer has any item on both slots

Constant Value

Offset: 0x23BBB
Default value: 0x32

Example:

Locke is at level 9 and monster at level 5.
StealValue = 0x09 + 0x32 - 0x05

StealValue = 0x36 ( = 54 )

The higher that value, the lower are your chance to fail stealing.

Random Value

Offset: 0x23BD0
Default value: 0x64

The random value is picked within ]0x00,0x64[ = 0x01,0x02,...,0x62,0x63}

Example:

If the default value is changed to 0x09 then step 4 is

If StealValue < [Value randomly picked within {1,2,...,8,9}] then you fail to steal

The lower that value, the higher your chance to steal successfully.

Probability

Offset: 0x23BDD
Default value: 0x20

You have a chance of 0x20 / 0x100 ( = 1/8 ) to steal a rare item

Example:

If the default value is changed to 0x80

You have a chance of 0x80 / 0x100 = 50% to steal a rare item.

The higher that value, the higher are your chance to steal a rare item.