Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Need Help w/running AI Scripts Random Starts
[SOLVED] Need Help w/running AI Scripts Random Starts
This topic is locked. You can no longer write replies here.
Aug 13 2012, 12:35 am
By: Radical924  

Aug 13 2012, 12:35 am Radical924 Post #1



Hi I am familiar with the Starcraft map editor but still fairly new. I am trying to get AI players to spawn at random start locations and activate 1 of 2 scripts (either one sounds fine to me). Either the AI spawns randomly and runs the script: Expansion Protoss/Zerg Custom Level OR the AI spawns and runs the script: Value This Area Higher

In the end I would like to be able to just load up my map triggers on a blank map, make some spawn locations with resources and gas, and save the map. I do not know how to save my unit and hero settings, upgrade settings or special ability settings BUT I would like to know how to save these. (I would like to save all these settings from the Station Edit map)


Please reply if you know how to help me with either or both of my problems... Thanks!

Here are the 2 maps:

https://rapidshare.com/files/924469976/Radical924_s Jungle World 1.scx

https://rapidshare.com/files/3218620402/Station Edit-Radical924.scx

COPY WHOLE LINK



None.

Aug 13 2012, 3:02 am Vrael Post #2



I think a little more clarification will help us better understand what you want. "Start Locations" are those little circular things where protoss nexus/terran command center/zerg hatcheries will spawn when the map is played in melee. If you're playing the map under Use Map Settings, nothing will spawn here. Unfortunately, if you're playing the map in melee, none of your triggers will run, so you can't use the AI scripts in melee.

However, what I think you want, is to have locations across the map where a computer player can randomly start from, and begin building based on those two AI scripts you mentioned. Is this correct? This is possible, just you'll have to play the map in Use Map Settings, and use Locations instead of "Start Locations" to issue the AI script commands.

As for saving unit and hero settings across maps, I don't think that's possible, sorry. It's tedious, but I think you'll have to set them all by hand.



None.

Aug 13 2012, 3:55 am Lanthanide Post #3



There are some older map tools that can deconstruct the map sections into different files, so theoretically you could take the units section from one map and put it in another. I tried to play around with them but didn't have much luck getting them to work (can't remember the problems, might have been W7 compatibility).

Should be possible to do with a hex editor if you're really desperate, though.



None.

Aug 13 2012, 4:23 am Radical924 Post #4



Okay it is a map where I Use Map Settings and I have tried locations but I want the location to be random not all of the locations. Think of it this way the computer is another player that is WAAAAAAAY better than any of the other players. The computer player spawns at any of the random starting locations and the computer player can be killed. (I just have it so they can't lose or be completely taken out with an invincible overlord that cant carry anything and an invincible protoss observer)



None.

Aug 13 2012, 5:03 am Roy Post #5

An artist's depiction of an Extended Unit Death

Quote from Vrael
As for saving unit and hero settings across maps, I don't think that's possible, sorry. It's tedious, but I think you'll have to set them all by hand.
It's possible. http://www.staredit.net/files/460/
Quote from Radical924
Okay it is a map where I Use Map Settings and I have tried locations but I want the location to be random not all of the locations. Think of it this way the computer is another player that is WAAAAAAAY better than any of the other players. The computer player spawns at any of the random starting locations and the computer player can be killed. (I just have it so they can't lose or be completely taken out with an invincible overlord that cant carry anything and an invincible protoss observer)
Sounds like you just need to implement a random spawn system.
Example Implementation

You can obviously randomize more switches if you have more spawn locations.




Aug 13 2012, 7:02 am Lanthanide Post #6



Quote from Roy
Quote from Vrael
As for saving unit and hero settings across maps, I don't think that's possible, sorry. It's tedious, but I think you'll have to set them all by hand.
It's possible. http://www.staredit.net/files/460/
Yip, that's the programme I tried to use. Couldn't get it to work.



None.

Aug 13 2012, 11:58 am TF- Post #7

🤙🏾

If I couldn't get any of the programs to work I would probably make a copy of the map and use Scmdraft to change the map's tileset to what it needs to be, then paste in the terrain and doodads manually.



🤙🏾

Aug 14 2012, 5:19 am Radical924 Post #8



Quote from Roy
Quote from Vrael
As for saving unit and hero settings across maps, I don't think that's possible, sorry. It's tedious, but I think you'll have to set them all by hand.
It's possible. http://www.staredit.net/files/460/
Quote from Radical924
Okay it is a map where I Use Map Settings and I have tried locations but I want the location to be random not all of the locations. Think of it this way the computer is another player that is WAAAAAAAY better than any of the other players. The computer player spawns at any of the random starting locations and the computer player can be killed. (I just have it so they can't lose or be completely taken out with an invincible overlord that cant carry anything and an invincible protoss observer)
Sounds like you just need to implement a random spawn system.
Example Implementation

You can obviously randomize more switches if you have more spawn locations.

Now if I implement this system will player 8 try to spawn where another player has already spawned since the randomized locations will be overtop of randomized human spawn locations ??????



None.

Aug 14 2012, 7:28 am NudeRaider Post #9

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Add a step that checks if there are already units at that location.




Aug 14 2012, 10:31 am Radical924 Post #10



UPON REQUEST:
Here is my map in the condition before I add the random AI spawn system

https://rapidshare.com/files/3239845628/Radical924 TEST MAP.scm

Quote from NudeRaider
Add a step that checks if there are already units at that location.

How do I add a step to check if units are there?

How do I add a condition if player is a certain race?

As of August 17th 2012 I have the respawns working to my liking THANK YOU EVERYBODY!!!!!!!!!!!!!!

Post has been edited 7 time(s), last time on Aug 17 2012, 7:04 am by Radical924.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
Please log in to shout.


Members Online: MetalGear