Staredit Network

Staredit Network -> UMS Assistance -> Randomization of Switches/Clean-up Spawn/Computer
Report, edit, etc...Posted by Deshouleres on 2005-11-25 at 22:57:46
I am in the process of making a map that uses 7 switches to randomize 27 units that will appear for each player;

I am using:


Trigger
Description:
Rine 1
Players:
¤ 1
Conditions:
¤ Switch 1 is set
¤ Switch 2 is cleared
¤ Switch 3 is cleared
¤ Switch 4 is cleared
¤ Switch 5 is cleared
¤ Switch 6 is cleared
¤ Switch 7 is cleared
¤ Switch 8 is set // Explained later;;
Actions:
¤ Create 1 Terran Marine for Current Player at ! Schools out
¤ Clear switch 8


And it continues on with different switches set and switches 8-35 designating if that unit has already been created; The players after 2 have an extra condition of no being able to make their unit until the player before them has made a unit, which after they have the switches are randomized again;;;

The question that I have is, I would like to make it so that I could have the computer spawn all the other units and then have them go into random directions attacking all, I don't want them to work together however;;

Another problem (As stated above in title) is that I need to make it so that "Resticted" areas that make you die instantly if you enter them will be avoided by the computer players... IDK if that is possible, but I hope I can acheive it;

Any help would be greatly appreaciated;
Report, edit, etc...Posted by Oo.Turin.oO on 2005-11-26 at 01:18:15
If you want them to go into completely random spots (like literally ANYWHERE) then you can use junk yard dog AI script, or suicide mission AI script. If you want them to go into predetermind spots but in a randomized manner, then you should use a different set of switches and do that same thing.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-11-26 at 19:09:45
Set A Death Trigger Randomization.

Ex.

[Player 8]
-Always


-Add 1 Deaths Of ??? For Current Player
-Preserve Trigger


[Player 8]
-Current Player Has Suffered Exactly However Many Total Locations You Want Them To Randomly Go To


-Set To 0 Deaths Of ??? For Current Player


Then Say...

[Player Commanding Marines]
-Player 8 Has Suffered Exactly 1 Deaths Of ???


-Issue Order; Move To All Marines For Current Player At !Schools Out To ???

Etc.
Report, edit, etc...Posted by PCFredZ on 2005-11-26 at 19:39:26
Here is an example map. All the triggers you'll be concerned with are under P6. Go nuts.
Report, edit, etc...Posted by Joshgt2 on 2005-11-26 at 20:13:53
Did you look at the tutorial on this? There are a lot of tutorials on this kind of topic that you are looking for.
Report, edit, etc...Posted by Deshouleres on 2005-11-26 at 21:11:58
Hrm... either people don't care to listen or I am explaining it poorly; Let me re-state:


I know how to make the units go in random directions I know how to make them attack randomly also; I need help preventing bot 1-bot 21 from going into restricted area 1;


bot 1
|***********************|
| Restricted Area #1 |
|_______________________|

I need bot 1 to go into random locations (( Send all units on random suicide missions )) but I need it to 'logically' stay away from the restricted areas just like other players would; I would prefer not to hard code in its directions seeing as there will be 27 different bots, all with different chances of being made under the control of that player; Restricted areas are continually added and by the end of the map if no one chooses to kill anyone ((Work together and such)) they will all die by being killed for being in one of the many restricted areas;; If this doesn't make sense, I will simply work on it by myself;

Thanks all of you that choose to try and help me out;

ADDITION:
QUOTE(Joshgt2 @ Nov 26 2005, 05:13 PM)
Did you look at the tutorial on this? There are a lot of tutorials on this kind of topic that you are looking for.


Actually, not really; Before I ever posted on the forum I read almost every single tutorial mulitple times; Thank you though, but I am not a noob to the forum;
Report, edit, etc...Posted by PCFredZ on 2005-11-26 at 22:00:36
How about making the Restricted Areas warp units to the center of the map or something instead of killing them?
Report, edit, etc...Posted by KABOOM on 2005-11-27 at 00:16:22
Or you can just prevent them from being ordered there...by adding alot of conditions biggrin.gif
Report, edit, etc...Posted by PCFredZ on 2005-11-27 at 11:27:26
Better yet, use Starforge to make a border around the Restricted Area of a different type of elevation, then use one single location restricted to only that elevation to order computers to move away.

If you need help on elevation, just ask.
Report, edit, etc...Posted by Deshouleres on 2005-11-28 at 23:35:34
Here is the story of the thing I am basing it off of (Quick summary):

QUOTE
It is about a class of 9th graders in Japan in the future; They get kidnapped for a televised 'sport' of hunting each other down; They are given random weapons (By lottery) and are sent out to hunt each other; They wear around their necks necklaces filled with explosive (More like collars...) and every few hours another 'restricted zone' is announced, meaning if any player goes into that area their head explodes; They have to kill everyone else until there is only one left, and then they win; There are weapons anywhere from nothing to a semi automatic machine gun;

that is the jest of the story;;


If that helps on what I have to do; I need to make the map open but restricting with triggers, and I have already figured out how to show if an area is restricted;; I just need help with the computer seeing as I rarely do trigs with comps;

Thank you all.
Next Page (1)