I was trying to creat admin commands script using Switches and the switches doesnt change from Off to On when i do this :
if Input_trigger?(Input::P)
$game_switches [1501] = true
end
it was supports to be a script for NP+ 2.0 on my game (I just need the Global Switches and it will work)...
Here is the script please help me out..
Thanks alot to the one that will help me..
if Input_trigger?(Input::P)
$game_switches [1501] = true
end
it was supports to be a script for NP+ 2.0 on my game (I just need the Global Switches and it will work)...
Here is the script please help me out..
Code:
#===============================================================================
# ** Admin_Commands
#-------------------------------------------------------------------------------
# Version 1.0 by kRECKER (Kick all and Summon monster commands)
#-------------------------------------------------------------------------------
# Admin_Commands script let you do simple admin commands as Summon Monsters,
# kick \ Kick All and start \ stop Special Events.
# Requides : SDK Script and Global Switches (starting from 1500)
#-------------------------------------------------------------------------------
SDK.log("Admin Commands", "kRECKER", 1.0, "16.4.07")
#==============================================================================
if SDK.state("Admin Commands") == true
class Admin_Commands
def Call_Commands
if Input_trigger?(Input::P) #kick all
$game_switches [1501] = true
end
if Input_trigger?(Input::O) #after all kicked click "O"
$game_switches [1501] = false
end
if Input_trigger?(Input::I) #Summon Night
$game_switches [1502] = true
end
if Input_trigger?(Input::U) #Stop Night
$game_switches [1502] = false
end
if Input_trigger?(Input::Y) #Summon Monster
$game_switches [1503] = true
end
if Input_trigger?(Input::T) #Make the monster go away
$game_switches [1503] = false
end
if Input_trugger?(Input::R)
$game_switches [51] = true #Kick
end
if Input_trigger?(Input::E)
$game_switches [51] = false #after 2 seconds use (if you used kick)
end
end
end
end
Thanks alot to the one that will help me..