Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Random Weapons
[SOLVED] Random Weapons
This topic is locked. You can no longer write replies here.
Jul 1 2012, 10:29 pm
By: killer7008  

Jul 1 2012, 10:29 pm killer7008 Post #1



how would i go about makeing a certain amount of items spawn randomly in a set area?



None.

Jul 1 2012, 10:45 pm Roy Post #2

An artist's depiction of an Extended Unit Death

What part of this scenario do you want described? Spawning locations, randomization, or both?

Just as a brief overview, you can set up your spawn points using a grid system (I'd recommend a static grid, if you can afford the units). For randomization, you can go with randomizing switches with a binary count-off system. This combined with static grids works quite well. If Switch 1 is set, give 1 unit from the grid, and if Switch 2 is set, give 2 units from the grid, Switch 3 -> 4 units, etc.

I don't know how much detail you need, but if the reading above is confusing and/or you need a more thorough explanation, just say the word.




Jul 2 2012, 4:40 pm killer7008 Post #3



yes both please and if i wanted the weapons to spawn in a arena say just one area of the map?



None.

Jul 3 2012, 12:47 am Roy Post #4

An artist's depiction of an Extended Unit Death

If you want it for only a specific area of the map, then put your grid system in only that specific area of the map.

Here's something I wrote a long time ago about static grid systems:

Static Grid Tutorial

As for your scenario, I already mentioned that you'll want a binary count-off system for the randomization. For example:

Sample Implementation

You can obviously change around that last trigger to change what items spawn and at what frequency; you won't need to modify the grid system itself once it is in place.

If you don't understand the above implementation, I recommend you revisit the links I provided (grids, binary). If you don't understand grids after that reading, review and follow the tutorial I posted above to get some experience with it, and tinker around with it to see what else you can learn from it. If you're still stumped after all of that, post again what specific confusions you have.

Post has been edited 1 time(s), last time on Jul 28 2012, 2:39 pm by Roy.




Jul 3 2012, 12:53 am killer7008 Post #5



thank you so much for your help, i appreciate it greatly.



None.

Jul 3 2012, 3:28 am Cadia- Post #6



this is very helpful the one thing i dont get is the comment triggers? do you just write Death Counter or what ever????



None.

Jul 3 2012, 3:32 am Roy Post #7

An artist's depiction of an Extended Unit Death

Quote from Cadia-
this is very helpful the one thing i dont get is the comment triggers? do you just write Death Counter or what ever????
Comments are just to describe what the trigger is doing; they aren't needed (and are by some opinions not recommended). You can put whatever you want for them, or not put them at all, and the triggers will still work as expected.

EDIT:
Haha, beat Devlin by 14 seconds!




Jul 3 2012, 3:32 am DevliN Post #8

Woah

Comments are just labels for the triggers. You can put whatever you want there or nothing at all.

EDIT:
Beat me by 14 seconds, you bastard. :P



:devlin: Currently Working On: :devlin:
Myself

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:20 am]
Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
Please log in to shout.


Members Online: Dem0n