Is there a way to disable/enable event interactions at will? And maybe exclude specific events from being disabled?
Let's say (for example) I wanted to have a "freeze time" spell available for players at all time. Not only would I need to stop movement, I'd need the NPCs to stop talking if interacted with, while at the same time allowing certain events to work (if, for example, I wanted the players to be able to pickpocket an item from a frozen NPC). Doing this with switches is too much work and error prone (I'd need an event page for ALL events in all maps, since the spell should be able to work anywhere, and I would probably want to block exits as well).
I actually need such a script for a variety of scenarios, so I am not looking specifically for a way to implement my example (even though I could use it), I need the script itself. I am willing to pay, if such a script requires extensive work (I'd like to use the script in commercial game).
Edit:
Nevermind, I think I managed to create it myself (I figured it would be harder XD).
If anyone is interested, this is how I did it:
class Game_Event < Game_Character
alias mdqp_block_start start
def start
return if empty?
unless $game_switches[160] == true
@starting = true
lock if trigger_in?([0,1,2])
else
if @event.name.include?("&&")
@starting = true
lock if trigger_in?([0,1,2])
end
end
end
end
I use the switch 160 to stop events from starting (but of course, any other condition would work) and I identify the events I want to still be interactive if they include "&&" in the name. I can imagine most people wouldn't want to mess with this, since disabling all events can be potentially disastrous, bit I figure it could be interesting. I don't know if this stops movement (probably not), but it's going to solve a lot of my problems (and usually NPCs are stationary in my game anyway).
Let's say (for example) I wanted to have a "freeze time" spell available for players at all time. Not only would I need to stop movement, I'd need the NPCs to stop talking if interacted with, while at the same time allowing certain events to work (if, for example, I wanted the players to be able to pickpocket an item from a frozen NPC). Doing this with switches is too much work and error prone (I'd need an event page for ALL events in all maps, since the spell should be able to work anywhere, and I would probably want to block exits as well).
I actually need such a script for a variety of scenarios, so I am not looking specifically for a way to implement my example (even though I could use it), I need the script itself. I am willing to pay, if such a script requires extensive work (I'd like to use the script in commercial game).
Edit:
Nevermind, I think I managed to create it myself (I figured it would be harder XD).
If anyone is interested, this is how I did it:
class Game_Event < Game_Character
alias mdqp_block_start start
def start
return if empty?
unless $game_switches[160] == true
@starting = true
lock if trigger_in?([0,1,2])
else
if @event.name.include?("&&")
@starting = true
lock if trigger_in?([0,1,2])
end
end
end
end
I use the switch 160 to stop events from starting (but of course, any other condition would work) and I identify the events I want to still be interactive if they include "&&" in the name. I can imagine most people wouldn't want to mess with this, since disabling all events can be potentially disastrous, bit I figure it could be interesting. I don't know if this stops movement (probably not), but it's going to solve a lot of my problems (and usually NPCs are stationary in my game anyway).