Finding a location

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

toffey
Newcomer
Posts: 16
Joined: July 16th, 2007, 6:47 am

Finding a location

Post by toffey »

Hello, I used Xdep to deprotect a map that has some secrets in it. The map is Legendary Monsters, searching through the "init" trigger I found the secrets but they referred to the locations as letters and numbers such as "h036". How can i translate this to know where that may lay on the map in world editor.

Code: Select all

function Trig_secret_2_Func005C takes nothing returns boolean
	if(not(GetRandomInt(1,2)==1))then
		return false
	endif
	return true
endfunction

function Trig_secret_2_Actions takes nothing returns nothing
	call DisableTrigger(GetTriggeringTrigger())
	set udg_integer25=(udg_integer25+1)
	call DisplayTimedTextToForce(GetPlayersAll(),30,"Secret Cove Unlocked")
	call ConditionalTriggerExecute(udg_trigger26)
	if(Trig_secret_2_Func005C())then
		call CreateNUnitsAtLoc(1,'h036',Player(PLAYER_NEUTRAL_AGGRESSIVE),GetRandomLocInRect(udg_rect44),bj_UNIT_FACING)
	else
	endif
endfunction

function InitTrig_secret_2 takes nothing returns nothing
	set udg_trigger20=CreateTrigger()
	call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect44)
	call TriggerAddAction(udg_trigger20,function Trig_secret_2_Actions)
endfunction
That is the code in the trigger for the secret 2. If it helps at all.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Finding a location

Post by Aero »

This is activated by entering a unit into "udg_rect44" which is defined in the j script.
Find out the coordinates for the rect and then look at the map.