The easiest is probably using a single global variable that you decide how it's set.
Eg you could draw invisible rectangles in the room, and give them a number that correlates to the monster enumerator eg:
monster = e_mon.slime;
Then in the collision event, with the player, you set the global variable to the monster variable
eg
global.monster = monster
GameMaker Rob
75
Posts
110
Followers
27
Following
A member registered Mar 06, 2018 · View creator page →
Creator of
Create your own Isometric Tactics Battle game, with story lines, cutscenes, shops, and battles! For GameMaker Studio 2.
Manage your own call center, starting in a lowly garden shed, who knows- you might even reach the stars!
Simulation
A collection of community made projects (source code + executables)
Everything you might want to kick-start your epic RPG!
NPC's sell different items, player has inventory and equipped items
Recent community posts
RPG Battle System for GameMaker Studio: 2 comments · Replied to pacurar.tudor in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to pacurar.tudor in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to pacurar.tudor in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to Janus in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to Janus in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to Janus in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to Janus in RPG Battle System for GameMaker Studio: 2 comments
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to tim in Isometric Tactics Battle system for GameMaker Studio 2 comments
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to tim in Isometric Tactics Battle system for GameMaker Studio 2 comments
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to Abu Yahia Abdu Samad in Isometric Tactics Battle system for GameMaker Studio 2 comments
itch.io Community » General » General Discussion · Replied to Smelly pizza in Epic Games Grant Available for Unreal Engine Developers
itch.io Community » General » General Discussion · Posted in Epic Games Grant Available for Unreal Engine Developers
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to Dmitri22 in Isometric Tactics Battle system for GameMaker Studio 2 comments
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to Dmitri22 in Isometric Tactics Battle system for GameMaker Studio 2 comments
Isometric Tactics Battle system for GameMaker Studio 2 comments · Replied to Dmitri22 in Isometric Tactics Battle system for GameMaker Studio 2 comments
Bighani (Thesis Game) Alpha vr1.0.0 comments · Replied to Shade in Bighani (Thesis Game) Alpha vr1.0.0 comments
Bighani (Thesis Game) Alpha vr1.0.0 comments · Posted in Bighani (Thesis Game) Alpha vr1.0.0 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to Nosferatube in RPG Battle System for GameMaker Studio: 2 comments
Just some way to recognise that a boss battle is happening. At the moment I tend to have arrays that I pull from to determine who the enemy is. You could have a variable that is normally set to -1 (ie random battles) and you set that variable to a particular number when you want to fight a particular monster.
This means you just need to keep resetting that variable to -1 at the end of a battle.
How/when you set that variable to something other than -1 depends on how you have your game setup atm.
RPG Starter Kit for GameMaker Studio 2 comments · Replied to Rodekik in RPG Starter Kit for GameMaker Studio 2 comments
Minifantasy🌳Forgotten Plains comments · Replied to Krishna Palacio in Minifantasy🌳Forgotten Plains comments
Retro Palette Swapper - for GameMakerStudio 1 & 2 community · Replied to Pixelated Pope in HTML Problems
Retro Palette Swapper - for GameMakerStudio 1 & 2 community · Replied to Pixelated Pope in HTML Problems
RPG Battle System for GameMaker Studio: 2 comments · Replied to Higgos in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to rankhowl in RPG Battle System for GameMaker Studio: 2 comments
RPG Battle System for GameMaker Studio: 2 comments · Replied to rankhowl in RPG Battle System for GameMaker Studio: 2 comments
RPG Starter Kit for GameMaker Studio 2 comments · Replied to Irish Potato Studios in RPG Starter Kit for GameMaker Studio 2 comments