• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need script for spawning units with random attachments.

Status
Not open for further replies.
Level 1
Joined
May 19, 2005
Messages
3
What I need done is a script that will periodically spawning a set number of units and give them a random assortment of attachments, and upon spawn and sending them to go attack a point.
This request may seem somewhat newbish and that is of course because I am a newb at map-making, so if you do end up making this please make it easily moddable and put a tutorial just to explain how things work.
If you want to simply write the script here, please explain it clearly so that I am not going to have to make multiple topics asking about how to do something you did to explain.
Thank you for your time.
 
Level 4
Joined
Jan 9, 2005
Messages
106
the spawning and sending is simple, make a few regions and tell the game to:

for each integer A from 1 to '# of units you want' do:
create unit of type 'the unit' in region 'w/e you call it1'
place the item attachment here
order last created unit to 'attack to' region 'w/e you call it2'

as far as random attachment i just dont get whatt you mean by that... items attached to the unit for the graphical effect, items in the inventory, or item in the inventory that add the graphic effect? whattcha looking for?
 
Level 1
Joined
May 19, 2005
Messages
3
Well what i mean by the random attachment is that I want an attachment from some sort of data base attached to the spawned unit to give them variation so that they do not all look like clones.
 
Status
Not open for further replies.
Top