View Full Version : A Basic Trigger - Not working
Yahya
12-03-2006, 07:27 AM
Greetings,
Last night I made a quick map (default grass), put down one villager, and then set up a trigger.
It says:
IF Player1 Building Palace > 0 THEN
SendDialog Tutorial This is a Test.
More or less.
I have not gotten that event to fire, despite a few attempts. Is there something obvious that I am leaving out?
Karter
12-07-2006, 02:51 PM
Yahya Greetings,
Last night I made a quick map (default grass), put down one villager, and then set up a trigger.
It says:
IF Player1 Building Palace > 0 THEN
SendDialog Tutorial This is a Test.
Hi Yahya
If I remember correctly about this editor I don't believe it checks for a Player1 status or any Player status
Player1 Player2 Player3 etc... is really used for multiplayer style games
COTN is a single player game and the editor (I think) has been reworked for this purpose.
It seems to me that many features are either disabled or ignored
but it has been a while since I have played with it, so I could be wrong
Yahya
12-07-2006, 03:25 PM
Hi Karter,
Thanks for answering. :)
I think I must have done something wrong, because I am pretty sure that is basically how the triggers work in the tutorials to say "If player1 has built one of each common shop, then give them this message:" etc.
I think it's possible.
I have also learned that it is theoretically possible (though I don't know how to do it in practice yet) to destroy everything in a particular area, but we'll see. I might be able to do some cool stuff with raiders. :rolleyes:
Karter
12-07-2006, 04:51 PM
LOL yes you can
that is how Nazalat and Phakotis are done
in Nazalat I separated the map into 4 areas, so they overlapped slightly
LUC - left upper corner
RUC - right upper corner
LLC - left lower corner
RLC - right lower corner
area1
area2
area3
area4
this is so I could check which area of the map a person was building on
then I created a trigger, ie;
if barge>0 in area1 destroy that barge
if barge>0 in area2 destroy that barge
if barge>0 in area3 destroy that barge
if barge>0 in area4 destroy that barge
or
if bakery=>2 in area2 destroy 1-4 bakeries, etc
I did have to take care that if they were building in 2 or 3 different areas
that I would disable the remaining triggers, I didnt want to do to much damage
------
that is also how I calculated if a wall was finished in Rhakotis
I cropped the area where the wall should exist ,ie: walledarea
within that area I knew that it took at least 240 wall sections to be complete
so
if wall sections >=240 in walledarea then do whatever
hope that helps
-----
you can also create objects in the given area
that is how I created the farmers hovels in Nazalat
I had an area called farmerhomes or something like that
so when they submitted 25 copper it created (objects) 15-30 hovels in the given area
I then used the camera function to zoom to that area to draw attention
hope it helps
:)
Yahya
12-07-2006, 05:14 PM
LOL yes you can
Heh. After I submitted that, I went and downloaded every available user scenario (man, there are many!), and read your notes on Nazalat, and saw that exactly what I had just written to you, you had already done. :D
So, it seems one could spawn raiders manually, etc. Nice. :p
Azeem
12-07-2006, 05:25 PM
Greetings,
Last night I made a quick map (default grass), put down one villager, and then set up a trigger.
It says:
IF Player1 Building Palace > 0 THEN
SendDialog Tutorial This is a Test.
More or less.
I have not gotten that event to fire, despite a few attempts. Is there something obvious that I am leaving out?
If I recall correctly, it is possible to trigger an event if you set down a particular building. I believe this was done in one of the built-in scenarios. The ">" option does not work properly, however. I think you'd have to youse the ">=" option.
Yahya
12-07-2006, 05:37 PM
Thanks for the tip, Azeem, I will have to check that out.
Just a thought: I had an idea this afternoon, that maybe a really grand campaign could be made by a few designers.
Maybe we could each do like three or four scenarios, get 3 or four designers to do that. Then we would have a campaign of 10 or 12, or even more, missions.
I would first like to do my 25th dynasty, and then work on the tutorials, just because I would like to. But my mind's gears are turning...
Azeem
12-07-2006, 05:51 PM
My attention is currently on the 18th Dynasty campaign, but a cooperative campaign sounds interesting. :)
Yahya
12-07-2006, 06:40 PM
I hear you on where your attention lies, but excellent. :p
vBulletin® v3.7.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.