HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Help.

05-16-2002, 08:51 PM#1
Guest
How do i make like something from a player walk into a region that have a work to show witch race your selecting and well create you that worker on a random location where in the Lost Temple 1 of the 4 start like you know the 4 starting like above, left, right, below?

It well create 4 worker and 1 town center.
05-16-2002, 09:19 PM#2
Guest
I would explain if I understood what you said.

They don't teach you how to use comma in Canada?
05-16-2002, 09:23 PM#3
Guest
Ok here is a clear 1.

I want something own by a player to walk to a regoin that you can see a Naturl worker to touch. When that naturl worker is touch you get that worker for that race like this.

Peasant=Human
Peon=Orc
Acolyte=Undead
Wisp=Nightelf
Goblin Worker=Creepen Death
05-16-2002, 10:35 PM#4
Guest
How about this translation:

There are four worker units, one from each race, in four regions.
A player starts with a neutral unit. When that neutral enters one of the four regions, they are selecting which race to play.

Dark needs a trigger that loads a new map, with the player controlling a town hall and four workers from the race just selected. The player needs to start in a random one of four starting locations

Does that make more sense?

Xygorn
05-16-2002, 10:36 PM#5
Vaderman
That's not too much of an improvement in the english department.
05-16-2002, 10:46 PM#6
Guest
Thx for translating
05-17-2002, 05:50 AM#7
Vaderman
Is it even possible to load a new map in multiplayer cus everyone would have to d/l it. Could work for single player....
05-17-2002, 12:12 PM#8
Guest
whats the problem ?
event:
unit enters region [orcrace]
action:
if([randomnumber between 1 and 4] == 1) { create 4 peons at startpos1 for player owner of trigger unit; create 1 [mainbuilding] at startpos1 for player owner of trigger unit; kill trigger unit}

if([randomnumber between 1 and 4] == 2) { create 4 peons at startpos2 for player owner of trigger unit; create 1 [mainbuilding] at startpos2 for player owner of trigger unit; kill trigger unit}

if 3 .. start pos 3
if 4 start pos 4 ...


same with the other races
05-17-2002, 03:38 PM#9
Guest
of cause you have to use a var for the randomnumber between 1 and 4 and a trigger setting this var... you could make it like that

action:
newrndint = int betweed 1&4;
if(newrndint == oldrndint[1]) { runtrigger setrndint;} else { do nothing;}
if(newrndint == oldrndint[2]) { runtrigger setrndint;} else { do nothing;}
if(newrndint == oldrndint[3]) { runtrigger setrndint;} else { do nothing;}
if(newrndint == oldrndint[4]) { runtrigger setrndint;} else { do nothing;}
//for 4 players ...
//use for oldrndint[index] start value 0 ...

and put at the main trigger (unit enters region ....) as first action run trigger setrndint
for [randomnumber between 1 and 4] use newrndint ofcause =)
and at end you have to put the action
set variable: newrndint = oldrndint[number of player owning entering unit]

think thats it =)
05-17-2002, 03:40 PM#10
Guest
Uh Clearly Pls!
05-17-2002, 03:42 PM#11
Guest
think thats clear :o
05-18-2002, 12:43 AM#12
Guest
Dark,
How many people is this map for?
05-19-2002, 11:18 AM#13
Guest
if its for more just add more ifs and int between 1 and 12 or whatever
05-19-2002, 09:52 PM#14
Guest
Thx for the trigger.