Welcome to the BF Forums! Register Now, It's Free!

Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.

Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Warcraft > Warcraft Maps and Modifications

Reply
 
Thread Tools Display Modes
Old 02-11-2007, 04:56 PM   #1 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 16
Posts: 137
random movment

I was wondering how to do, unit enters region 1, 50% go to region 2, other 50% to region 3.
I think it has to do with conditions..
MyNameIsMonky is offline   Reply With Quote
Old 02-11-2007, 06:04 PM   #2 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,155
If you mean random movement without locations, there is an ability called Wander that creeps have. For regions, you will need a random int that changes every X seconds. If it is say 0, you make them mvoe right. If its 1, you make them move left.
__________________


The Purpose of DTD is not to show off how good you are.
But to do an insane flying move and landing at 3000 km/h.
Hopefully, without crashing into something or flying off in the process.

F-Zero Forever!

One of Wrestlemania 24's Epic Moments

Chris is offline   Reply With Quote
Old 02-11-2007, 06:28 PM   #3 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 16
Posts: 137
Could you say like the exact trigger. That would be more helpful, becuase i dont not have any idea how htat would work. i want them to move to region 2 when entering 1 if the it is on 1?
MyNameIsMonky is offline   Reply With Quote
Old 02-12-2007, 06:11 PM   #4 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 14,942
When a unit enters region 1, use an If-Then-Else action that generates a random number in If and compares it with 0.5. If this number is less than 0.5, then go to region 2, otherwise go to region 3. I'm not sure of this wander thing, though...

Problem: Warcraft III does not have a fully random engine. It generates a seed and this seed is consistent for the map irregardless of time. So you will have to play around a little with random events, such as generating a random number every time a unit is selected, to keep the generator moving. Unless there is a trigger to start the randomising.*
__________________
* Hang on a second...

Diablo III has been announced!

Here's what you need to do: Register a new account and tell the world what you think of this game.

Tell the damned world. The world wants to know.
x42bn6 is offline   Reply With Quote
Old 02-13-2007, 06:37 PM   #5 (permalink)
I still play games
 
Join Date: Nov 2003
Posts: 1,692
This is one way you could do it:

Events
Unit - A unit enters Region 1
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in (Region 1))) Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 2) Equal to 1
Then - Actions
Unit - Order (Entering unit) to Move To (Center of (Region 2))
Else - Actions
Unit - Order (Entering unit) to Move To (Center of (Region 3))
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in (Playable map area))) Greater than or equal to 2
Then - Actions
Set Integer_Units = (Number of units in (Units in (Region 1)))
Unit Group - Add all units of (Units in (Region 1)) to UnitGroup_Units
Unit Group - Pick every unit in (Random (Integer_Units - (Integer((((Real(Integer_Units)) x 0.50) + 0.00)))) units from (Units from UnitGroup_Units)) and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from UnitGroup_Units
Unit - Order (Entering unit) to Move To (Center of (Region 2))
Unit Group - Pick every unit in UnitGroup_Units and do (Actions)
Loop - Actions
Unit Group - Remove (Picked unit) from UnitGroup_Units
Unit - Order (Entering unit) to Move To (Center of (Region 3))
Else - Actions
Do nothing

If it's a move instantly thing you want, change the Unit - Order to Unit - Move Instantly.

Last edited by Octopor; 02-13-2007 at 06:41 PM.
Octopor is online now   Reply With Quote
Old 02-14-2007, 02:25 PM   #6 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 16
Posts: 137
Thanks for the help! but i need more help... i was wondering how to make a range more then 600. I put the range at 1000 but the in-game its only 600. I've Been wondering how to do this, porque its been happening to all the ****ty maps i make. Thank you.
MyNameIsMonky is offline   Reply With Quote
Old 02-17-2007, 12:24 AM   #7 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,155
Your Target Aquisition Range I think has to be greater than the base attack range.

I had that problem a long time ago.
__________________


The Purpose of DTD is not to show off how good you are.
But to do an insane flying move and landing at 3000 km/h.
Hopefully, without crashing into something or flying off in the process.

F-Zero Forever!

One of Wrestlemania 24's Epic Moments

Chris is offline   Reply With Quote
Reply

« help plz for map unprotector | Spells costing moolahs and/or lumber? »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 12:06 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0