RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Help for sort variable

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 58
RMRK Junior
Hello, saddened for my English but me am French. I wanted to know if there would be possibility of changing this command(order) script of VX Ace for RMMV.
Code: [Select]
@tableau = []
@tableau.push(31)
@tableau.push(33)
@tableau.push(73)
@tableau.push(75)
@tableau.push(77)
@tableau.push(79)
@tableau.push(81)
@tableau.sort! {|a, b| $game_variables[b] <=> $game_variables[a]}
$game_variables[83] = $game_variables[@tableau[0]]
$game_variables[84] = $game_variables[@tableau[1]]
$game_variables[85] = $game_variables[@tableau[2]]
$game_variables[86] = $game_variables[@tableau[3]]
$game_variables[87] = $game_variables[@tableau[4]]
$game_variables[88] = $game_variables[@tableau[5]]
$game_variables[89] = $game_variables[@tableau[6]]
$game_variables[90] = @tableau[0]
$game_variables[91] = @tableau[1]
$game_variables[92] = @tableau[2]
$game_variables[93] = @tableau[3]
$game_variables[94] = @tableau[4]
$game_variables[95] = @tableau[5]
$game_variables[96] = @tableau[6]
@tableau = nil

Thank you.