This jass trigger disables single player mode when initiated threw custom game:
To your map header, then create a variable called "SinglePlayer" or something. Now on map initialization have some custom script run like:
=======================================
Ok, the reason why I'm asking if you can convert that is because when I try to add that into my map I get:
I use WE Unlimited latest version and I have enabled the advanced triggers. Which has added tons of JASS scripts to the map and I think maybe I have to much Jass or something and it won't let me add anymore.
I'm trying to make it so you can't play my map threw custom game so it disables cheat codes...
Anyone know of a way to do this as a GUI?
JASS:
function isSinglePlayer takes nothing returns boolean
local gamecache gc=InitGameCache("gc.w3v")
call StoreInteger(gc,"test","test",9)
return SaveGameCache(gc)
endfunction
To your map header, then create a variable called "SinglePlayer" or something. Now on map initialization have some custom script run like:
- Trigger:
- Custom script: set udg_SinglePlayer = isSinglePlayer()
=======================================
Ok, the reason why I'm asking if you can convert that is because when I try to add that into my map I get:
I use WE Unlimited latest version and I have enabled the advanced triggers. Which has added tons of JASS scripts to the map and I think maybe I have to much Jass or something and it won't let me add anymore.
I'm trying to make it so you can't play my map threw custom game so it disables cheat codes...
Anyone know of a way to do this as a GUI?