-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCommand Remover.rb
64 lines (57 loc) · 2.14 KB
/
Command Remover.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# =============================================================================
# TheoAllen - Command Remover
# Version : 1.0
# Contact : Discord @ Theo#3034
# =============================================================================
($imported ||= {})[:Theo_CommandRemover] = true
# =============================================================================
# CHANGE LOGS:
# -----------------------------------------------------------------------------
# 2013.08.09 - Finished script
# =============================================================================
=begin
Introduction :
This script allow you to temporary erase a certain command and display it
again later using Game Switches
How to use :
Put this script below material but above main
Edit the configuration
Terms of use :
Credit me, TheoAllen. You are free to edit this script by your own. As long
as you don't claim it yours. For commercial purpose, don't forget to give me
a free copy of the game.
=end
# =============================================================================
# Configuration :
# =============================================================================
module THEO
module Command
# Write down the command name you want to remove. Then turn on the switch
# If you want to display it again, just turn off the switch
List = {
# "Command Name" => Switch id,
"Items" => 38,
"Skills" => 38,
"Equipment" => 38,
"Team Setup" => 51,
"Soul Shards" => 52,
"Bestiary" => 33,
"Class" => 53,
"Status" => 38,
# Add by yourself
} # <-- don't touch this
end
end
# =============================================================================
# End of configuration
# =============================================================================
class Window_Command < Window_Selectable
alias theo_disable_add_command add_command
def add_command(name, symbol, enabled = true, ext = nil)
hash = THEO::Command::List
if hash.include?(name)
return if $game_switches[hash[name]]
end
theo_disable_add_command(name,symbol,enabled,ext)
end
end