Random placing then travel 2 nearest location

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Random placing then travel 2 nearest location

Post by Frag_Masta »

i got another problem i need help with i need a trigger than will spawn things randomly but never within X range then send to nearest enemy if thats at all possible


Code: Select all

like there r 3 players and there are hostiles the hostiles spawn randomly lets say 4000 range [Minimal so they dun spawn in ya base instantly] away and then they travel to the nearest enemy

could someone help me or do i have to make it so in my map zombies spawn from a specific place but if so could u still pass off a trigger that will

Code: Select all

send the unit to the nearest enemy and attack move
thank you to all who help =)

EDIT: Also can someone recommend a site that explains how to set XP gained form creatures
EDIT2:And another site if it';s the same site dosen't matter but how to set the XP u need 2 gain a level

once again ty 4 helping =)
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Random placing then travel 2 nearest location

Post by Frag_Masta »

Major Super Duper Awesome Bump
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol
User avatar
Madara
Forum Fanatic
Posts: 311
Joined: October 26th, 2009, 10:22 pm
Title: mib^

Re: Random placing then travel 2 nearest location

Post by Madara »

nice 1year passed... and u bump
Spoiler:
(06:05:25) UndeadxAssassin: SLANDER
(06:05:32) Bartimaeus: See you later, Undead. I miss talking to you. Message me once in a while, :<
(06:05:37) UndeadxAssassin: /quit Bartimaeus!
(06:05:40) ChatBot: Madara logs into the Chat.
(06:05:49) ChatBot: Madara has been logged out (Kicked).
(06:05:54) Bartimaeus: >>
(06:06:02) Bartimaeus: He doesn't deserve to see my good bye to you, :D
(06:06:23) UndeadxAssassin: I'm still here because I wanna see his response
(06:06:29) UndeadxAssassin: :D
(06:06:31) ChatBot: Madara logs into the Chat.
(06:06:31) Bartimaeus: Oh.
(06:06:35) Bartimaeus: lol
(06:06:43) Madara: So should i say something dramatic
(06:06:48) Madara: or what satisfies u ?
(06:06:48) Bartimaeus: Nope.
(06:06:50) Bartimaeus: Because nobody cares.
(06:06:52) Bartimaeus: :3
(06:06:57) UndeadxAssassin: What a let down
(06:06:58) UndeadxAssassin: I'm leaving.
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Random placing then travel 2 nearest location

Post by Syre »

@Madara - Well it is his topic, and has gone unanswered, so i dont see a problem bumping this, it actually saves him from making another topic and having the original remain.

@Frag_Masta - For the second part, to get them to move to the closest unit, it will be easiest by using jass and GetClosestUnit() http://www.hiveworkshop.com/forums/jass ... t-s-59254/, however though, im pretty much GUI only, so i cant be of much help with that.

For experience, this should cover what your wondering. http://world-editor-tutorials.thehelper ... view=68382
Image
User avatar
Frag_Masta
Senior Member
Posts: 174
Joined: June 24th, 2007, 7:44 am
Title: Pleb
Location: NSW

Re: Random placing then travel 2 nearest location

Post by Frag_Masta »

Madara wrote:nice 1year passed... and u bump

Well thats why i called it the "Major Super Duper Awesome Bump"...

@Syre Thank you for your help i might finally finish the map now lol after 1.5 years xD
Spoiler:

Code: Select all

(19:48:44) dDemoneEvil: Frag_Masta
(19:48:47) dDemoneEvil: Spam.
(19:48:59) Frag_Masta: dDemoneEvil
(19:49:02) Frag_Masta: Spam..
(19:49:13) Tupac_Shakur: You both spam.
(19:49:24) Frag_Masta: Really?...

Code: Select all

(21:10:58) quosai: brb .a start
(21:11:08) Panda-Assassin: what the hell is .a?
(21:11:14) Frag_Masta: who cares?
(21:11:17) quosai: alright master 2pac
(21:11:24) quosai: .a mean dota
(21:11:28) quosai: sir
(21:11:34) Frag_Masta: why don't you type dota
(21:11:41) Frag_Masta: you really that lazy?
(21:11:42) quosai: brb .a start lol

Code: Select all

(18:03:26) Bartimaeus: Once again, congratulations, it's probably not you
(18:03:34) Frag_Masta: :D
(18:03:38) Frag_Masta: YUS!
(18:03:50) Frag_Masta: i dont feel like such a failure now
(18:03:55) Bartimaeus: lol