RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Help for sort variable

Started by crackerwood, August 30, 2016, 06:38:25 PM

0 Members and 1 Guest are viewing this topic.

crackerwood

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.
@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.