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.
[06:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
[2024-4-20. : 7:56 pm]
Oh_Man -- lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
Please log in to shout.


Members Online: eksxo, MetalGear