Register for free, and make this box disappear!

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


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers 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 > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 02-11-2007, 09:56 PM   #1 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 17
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
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 02-11-2007, 11:04 PM   #2 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,863
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.


Kurisu - Zy-el Sorceress - Level 46 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is offline   Reply With Quote
Old 02-11-2007, 11:28 PM   #3 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 17
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, 11:11 PM   #4 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
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.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
Old 02-13-2007, 11:37 PM   #5 (permalink)
I still play games
 
Octopor's Avatar
 
Join Date: Nov 2003
Posts: 1,720
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.
__________________
Quote:
My perception crit, now I can see why kids love Cinnamon Toast Crunch cereal.

Last edited by Octopor; 02-13-2007 at 11:41 PM.
Octopor is online now   Reply With Quote
Old 02-14-2007, 07:25 PM   #6 (permalink)
BattleForums Junior Member
 
MyNameIsMonky's Avatar
 
Join Date: Feb 2004
Location: No place
Age: 17
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 shitty maps i make. Thank you.
MyNameIsMonky is offline   Reply With Quote
Old 02-17-2007, 05:24 AM   #7 (permalink)
[F-Zero Fanatic]
 
Chris's Avatar
 
Join Date: May 2003
Location: Phantom Road
Age: 22
Posts: 15,863
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.


Kurisu - Zy-el Sorceress - Level 46 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« 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 +1. The time now is 01:29 AM.



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