Difference between revisions of "Shop random"

From OpenKore Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
; shop_random <[[boolean]]>
+
; shop_random <flag>
 
: Randomizes the order of items in your [[shop.txt|shop]].
 
: Randomizes the order of items in your [[shop.txt|shop]].
 +
 +
 +
{|border="1" cellpadding="2" cellspacing="1"
 +
|- style=background-color:#F9F9F9;
 +
!Value
 +
!Description
 +
|-
 +
|align=center|0
 +
|Disables.
 +
|-
 +
|align=center|1
 +
|Picks items to be sold and then shuffle their order
 +
|-
 +
|align=center|2
 +
|Shuffles shop.txt (virtually, not the actual file) and then picks the items to be sold
 +
|}
 +
 +
== Notes ==
 +
* The difference between flags 1 and 2 arises when [[shop.txt]] contains more items than we're able to sell at once:
 +
** shop_random 1 will always pick the shop items as they're listed (and then shuffle them);
 +
** shop_random 2 will shuffle the item list before picking the items that will be sold, therefore different items might be picked
 +
 +
  
 
[[Category:config.txt]]
 
[[Category:config.txt]]
 
[[Category:Vending]]
 
[[Category:Vending]]

Revision as of 04:44, 15 October 2017

shop_random <flag>
Randomizes the order of items in your shop.


Value Description
0 Disables.
1 Picks items to be sold and then shuffle their order
2 Shuffles shop.txt (virtually, not the actual file) and then picks the items to be sold

Notes

  • The difference between flags 1 and 2 arises when shop.txt contains more items than we're able to sell at once:
    • shop_random 1 will always pick the shop items as they're listed (and then shuffle them);
    • shop_random 2 will shuffle the item list before picking the items that will be sold, therefore different items might be picked