HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

player owned region(kinda)

04-27-2003, 01:56 AM#1
SkylineGT[FB]
how would i make a trigger that has a unit type in a message like"creep level 1" gives the player that types this a random unit of the lvl that was typed. in this case, it would be a random lvl 1 creep.

now what i cant do. i need the random lvl 1 creep to creat in the region that is in the player that typed the message's cell. how can i do this?

or if some one would want to make the trigger for me cause im not that familiar with WE. i can give u the trigger stuff that i got from Marsara(i think). and u will get credit for the trigger(so will marsara for making the trigger for me).
04-27-2003, 02:27 AM#2
DaKaN
make 1 region for each player, make the events for the chat, run a player check with a IF THEN ELSE, if triggering player = player 1 then create the unit in this region, if triggering player was player 2 then create in that region, and so on.
04-27-2003, 02:32 AM#3
SkylineGT[FB]
ok. thx. hey, wana make me a trigger by any chance? and send it to me? then ill CnP it into my map and it will be cool!?
04-27-2003, 08:55 PM#4
666bong666
dakan i think theres an easier way...when player types "whatever" create random creep lvl "whatever" at location of triggering unit only u'd need to make the event something to do with unid triggering something/ and player typing something...i know this can be done but for what i think u want this would be a better idea

or u could just make regions that follow the players around (u'd need unit variables for heros)
04-27-2003, 09:02 PM#5
DaKaN
if you asign a specified region to a region array, you can refer to the PlayerNumber(TriggeringPlayer) and use that as the array index
04-27-2003, 09:27 PM#6
666bong666
hmm...not too familiar with arrays...whats there use specificaly?
04-28-2003, 04:11 AM#7
Dead-Inside
Example:

A region array called Arrays

You put 50 region variables in the array and set them to 50 different regions.

You now go and make a chat message = "spawn"
Spawn 50 creeps lvl ? at Arrays[1-50]

Making it spawn them in all 50 regions, I think. Or it makes a random spawn in one of them, with 50 creeps. Anyhow, it works like a storage for variables.