Need help finding code

Epicurus

New Member
Reaction score
1
I'm trying to remake a type of kodo tag. I opened up a map which has kodos that act they way I want them to. They attack players and only attack buildings when their path is blocked from the target player. I also want them to gain an additional target type. In the template version you could add computer players and they would run around randomly would die just like any other player. I want to do this to, but with a certain computer player that dedicated to have many of these NPCs running around.

The problem that I have is that when I opened the file and looked at the triggers I found this:

Actually that is a fraction of the code. I copied the entire thing on the forum and previewed the post and it said it couldn't display it because the characters per post is 50000. The code had 179,697 characters.

I just want to find the code that makes the kodos do very specific tasks. I think I can use the normal world editor to make all the other aspects of the game. Any help on how to go about finding that bit of code would be great. If anyone thinks they can help I guess I could put the map file up so that people can look at the entire code.

Thanks


JASS:
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// <a href="http://dimon.xgm.ru/xdep/" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://dimon.xgm.ru/xdep/</a>
// Visit our modmaking community at <a href="http://xgm.ru/" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://xgm.ru/</a>


function InitGlobals2 takes nothing returns nothing
	local integer i=0
	set udg_timer01=CreateTimer()
	set udg_dialog01=DialogCreate()
	set udg_integer01=3
	set udg_boolean01=false
	set udg_group01=CreateGroup()
	set udg_group02=CreateGroup()
	set udg_timer02=CreateTimer()
	set udg_timer03=CreateTimer()
	set i=0
	loop
		exitwhen(i&gt;10)
		set udg_groups01<i>=CreateGroup()
		set i=i+1
	endloop
	set udg_integer02=0
	set udg_group03=CreateGroup()
	set udg_dialog02=DialogCreate()
	set udg_timer04=CreateTimer()
	set i=0
	loop
		exitwhen(i&gt;10)
		set udg_integers01<i>=&#039;uC01&#039;
		set i=i+1
	endloop
	set udg_integer03=0
	set udg_integer04=0
	set udg_group04=CreateGroup()
	set i=0
	loop
		exitwhen(i&gt;10)
		set udg_strings01<i>=&quot;&quot;
		set i=i+1
	endloop
	set udg_integer05=0
	set udg_integer06=&#039;o005&#039;
endfunction

//***************************************************************************
//*
//*Sounds
//*
//***************************************************************************
//***************************************************************************
//*
//*Unit Creation
//*
//***************************************************************************
//===========================================================================
function CreateBuildingsForPlayer0 takes nothing returns nothing
	local player p=Player(0)
	local unit u
	local integer unitID
	local trigger t
	local real life
	set u=CreateUnit(p,&#039;h00Q&#039;,1216.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1088.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,960.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,832.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,704.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,576.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,448.0,3840.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1600.0,3776.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1728.0,3776.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1856.0,3776.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3392.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3264.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3136.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3008.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2880.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2752.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2624.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2496.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2368.0,4096.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4416.0,3328.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4416.0,3200.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4416.0,3072.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4416.0,2944.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,2112.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,2240.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,2368.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,2496.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,576.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,448.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,320.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-832.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-960.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1088.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1216.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1344.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1472.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1600.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1728.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1856.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2112.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2240.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-1984.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2368.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2496.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2624.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-2880.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3008.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3136.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3264.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3392.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3776.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-3904.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-4032.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4672.0,-4032.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3648.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3776.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,3904.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4544.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4288.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4160.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4032.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4416.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,4672.0,-5184.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1216.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1344.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1472.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1600.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1728.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1856.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,1984.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2112.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2240.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2368.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2496.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,2624.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,320.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,448.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,576.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1088.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-960.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-832.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2624.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2496.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2368.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3392.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3520.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3648.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3776.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3904.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4032.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4160.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5184.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5312.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5568.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5696.0,-5056.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4928.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-576.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-448.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-320.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,832.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,960.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,1088.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1472.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1344.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1216.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1088.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-960.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4800.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4672.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4544.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4416.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5824.0,-4288.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-2624.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-2880.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-3008.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-3136.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-3264.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-2240.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-2112.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1984.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1856.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1728.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1600.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1472.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,-1344.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-832.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-448.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-576.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-704.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-320.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1856.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-1984.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2112.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2240.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2368.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2496.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-2624.0,3520.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3008.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3136.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3264.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3392.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3520.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3648.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3776.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-3904.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4032.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4160.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4288.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4416.0,3648.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,1984.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2368.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-4928.0,2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5056.0,2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5184.0,2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5312.0,2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2752.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2624.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2496.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2240.0,270.000)
	set u=CreateUnit(p,&#039;h00Q&#039;,-5440.0,2112.0,270.000)
endfunction

//===========================================================================
function CreateBuildingsForPlayer10 takes nothing returns nothing
	local player p=Player(10)
	local unit u
	local integer unitID
	local trigger t
	local real life
	set u=CreateUnit(p,&#039;h00Q&#039;,-4800.0,2752.0,270.000)
endfunction

//===========================================================================</i></i></i>
 

13lade619

is now a game developer :)
Reaction score
398
JASS:
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// <a href="http://dimon.xgm.ru/xdep/" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://dimon.xgm.ru/xdep/</a>
// Visit our modmaking community at <a href="http://xgm.ru/" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://xgm.ru/</a>
epic move :rolleyes:.
 

Epicurus

New Member
Reaction score
1
Yeah, I was suspecting you would say that. I got it off a hacked map. Sense I'm not trying to change the map but create a very different version of kodo I thought it would be alright. Although I guess I could see how someone could be upset about someone using their JASS code. The reason I tried to get it off another map is because I don't understand JASS at all and can't think of a good way to create the same effect with the the normal editor, but I guess that proabably isn't a very good excuse if you see this as stealling.

Anyway, if there is maybe some code that someone would let me use that would be cool. Or if theirs any data base with code that is free for everyone. I don't know I'm just going to keep working on the map, maybe something will come up.
 

wraithseeker

Tired.
Reaction score
122
What do you want the kodos to do?
A map that is unprotected gets everything ported to one trigger itself.

Or at least take the part where the kodos move.
 

Epicurus

New Member
Reaction score
1
Oh, didn't know that.

I want the kodos to:

Run randomly around the map until they
find an players hero or a peseant
attack move to that target
only attack buildings if they block the path of the unit

I think I could handle the creation of the kodos and other units and every other aspect of the map, but I don't know how to make the kodos not target buildings unless they block the kodo from the desired unit. I want the map to be focused on mazing, so I want the kodo to be forced to go the long way around, no matter how long, and only attack if it is truely blocked off.
 

wraithseeker

Tired.
Reaction score
122
Use Wander if you do not need it to be very smooth and set acquiste range to the range you want the kodos to start hitting their enemies.
For the blocking part, I don't have much of a clue but you could try making the point value of the buildings higher.
 

Epicurus

New Member
Reaction score
1
I know about the large acquistion range, but with wander, does that make them move like critters? Also, what do you mean by point value?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top