I want to make gameplay that is similar to a game called Illbleed. The main gameplay is that you have to avoid and disarm traps using a specific device. If you run into a trap, it’ll play a jumpscare. But if you disarm the trap, it won’t play and will give you a reward.
This video at 12:59 explains the mechanics more in-depth.
I want a way to make traps in the game where if you trigger them, they’ll play an animated cutscene. I also want this mechanic to be locked away by a certain item. Also, I want to have something where the senses go off when nearby a trap, just like in Illbleed. Is there a plugin or work around to do all of this?
var d = $gamePlayer.direction();
var x = $gameMap.roundXWithDirection($gamePlayer.x, d);
var y = $gameMap.roundYWithDirection($gamePlayer.y, d);
var id = $gameMap.eventIdXy(x, y);
var e = $gameMap.event(id);
if (e && e.event().meta.trap) $gameSelfSwitches.setValue([$gameMap.mapId(), id, "A"], true);
報酬もこの if 文の中に含めることができます。感覚系については、並列実行の共通イベントで、以下のスクリプトを使って各タイプの最も近い武装済みトラップまでの距離を変数に格納します。「sight」の部分をそれぞれの感覚に置き換えてください: