Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

#region main

		option_state = global.option_text[selected_option];
		
		selected_option = 0;
		
		switch option_state{
			case "ATTACK":{
				scr_attack(global.pl_stats[e_pl_stats.attack], monster.defence, monster, hero);
				option_state = "DONE"
			}break;
			
			case "ITEM": max_options = 0; break
			
			case "MAGIC": max_options = ds_list_size(ds_magic_list); break;
			
			case "RUN" : {
				var ran_away = choose(true, false);
				visible_string = ""
				
				if (ran_away == true){
					text_to_display = "You ran away like the pathedic coward you are."
					
					victory_state = "PLAYER RAN"
					option_state = "BATTLE OVER"
				}else{
					text_to_display = "You try to run away but fall flat on your face."
					
					option_state = "DONE"
				}
				
			}break}
			#endregion

this is the code, I don’t see anything wrong but I am a noob so do you see anything wrong.

Ok so back then I was doing the noob thing of using strings for enumerators, so check to see if option_state actually equals those strings like "ATTACK" and not "attack" or "Attack" for example because those are 3 different values.

So I checked the values, but nothing seems wrong. I feel like such a noob lol

Go to File > Export and send me the file and I'll check it out

https://loviekaldahl.itch.io/thing-for-gamemaker-rob

here is the link to the thing

I spent some time checking it out. I haven't found anything wrong yet. I don't know if there's a problem with converting whatever version of gamemaker you used to 2.3, but I can't even get show_debug messages to show after pressing Enter/Space, or any other key.

I've had this issue with another project and I don't know of a fix for it.

Deleted 3 years ago

If that is not working is there anything else you can do?

try not using 2.3

I only have 2.3.

Deleted 3 years ago

i have looked over the code, and still can not find the code. can u send me what ur code looks like?

If you've purchased this asset you should be able to download it to check it out :)

Deleted 3 years ago

ok I’m going the rewrite the last big part of code. time to grab lots of coffee (:

haha gl!