Jimaaten
11-29-2005, 01:07 PM
... Create another "Abu" site that replaces the existing "Abu" site, except that this Abu site will offer more resources for both food AND cedar. ...Hi, Azeem and Max-1. I didn't want to get in the middle of your scripting discussion (http://www.tiltedmill.com/forums/showthread.php?t=7630), so I've posted this in a new thread. I'm working on my first scenario and its been slow going. I have a question about doing something similar to the above captioned. I'd be grateful for some help. I don't have any programming experience, but the if, then stuff sounds similar to some basic math stuff I understood years ago in school. :p
I've started the world level three times and think I've worked out the problems I've been having with basic sites. Now I'm getting to the sites that need triggers and I have a few questions I haven't seen answered. I've read the tutorials, the pdf manual and several post, including Karter's (to you Max-1!) where he goes into them quite a bit. I am overwhelmed with info at the moment! ;)
To make a long story short (too late!), what I want to do is have Mine A & Mine B be affected by Site C. Site C won't open until Mine A & Mine B are opened. When Site C is open, I want it to increase the output of Mines A & B. Here's what I think I need so far and what I'm a little unsure about.
1. I need to create a trigger that checks if A & B are open, then make C visible (C will still be inactive).
2. When C is opened, I need a trigger(s?) to replace A & B with new versions of the mines with increased output -- A En(hanced) & B En(hanced) as it were.
2a. I need a trigger to make Mine A & Mine B Inactive & Invisible.
2b. I need a trigger to make visible A En & B En.
Now here's where I am a little confused. I want A En & B En to be active when they become visible. If I create A En & B En as active and invisible from the start of the game, will these sites try to interact with the player even though they haven't shown up yet. Is there an activate trigger for A En & B En that I need to add (starting them off as inactive as well as invisible)?
I'd also like A En & B En to revert back to Mine A & Mine B if upkeep is not made on Site C. Is this just as simple as which Site Category I give to Site C? Govt owned or Govt trade partner? I know in the game you can have a site close if you don't keep up with upkeep payments, but you can also stop trading without it closing down. So, would I need a trigger to do this and HOW?
Also, I'd like to have the mine names be the same on the map before and after the enhancement from Site C. Can I give the A En & B En the same Map Label of Mine A & Mine B respectively? Can you have two Item names in your list in the editor that are the same or do I have to give them different Map Label names.
Thank you for any help in advance. I think if I can understand how to do this, it would open up a lot of possibilities in future maps. If I can make it through this first one without completely going insane. :mad: :eek: :D
I've started the world level three times and think I've worked out the problems I've been having with basic sites. Now I'm getting to the sites that need triggers and I have a few questions I haven't seen answered. I've read the tutorials, the pdf manual and several post, including Karter's (to you Max-1!) where he goes into them quite a bit. I am overwhelmed with info at the moment! ;)
To make a long story short (too late!), what I want to do is have Mine A & Mine B be affected by Site C. Site C won't open until Mine A & Mine B are opened. When Site C is open, I want it to increase the output of Mines A & B. Here's what I think I need so far and what I'm a little unsure about.
1. I need to create a trigger that checks if A & B are open, then make C visible (C will still be inactive).
2. When C is opened, I need a trigger(s?) to replace A & B with new versions of the mines with increased output -- A En(hanced) & B En(hanced) as it were.
2a. I need a trigger to make Mine A & Mine B Inactive & Invisible.
2b. I need a trigger to make visible A En & B En.
Now here's where I am a little confused. I want A En & B En to be active when they become visible. If I create A En & B En as active and invisible from the start of the game, will these sites try to interact with the player even though they haven't shown up yet. Is there an activate trigger for A En & B En that I need to add (starting them off as inactive as well as invisible)?
I'd also like A En & B En to revert back to Mine A & Mine B if upkeep is not made on Site C. Is this just as simple as which Site Category I give to Site C? Govt owned or Govt trade partner? I know in the game you can have a site close if you don't keep up with upkeep payments, but you can also stop trading without it closing down. So, would I need a trigger to do this and HOW?
Also, I'd like to have the mine names be the same on the map before and after the enhancement from Site C. Can I give the A En & B En the same Map Label of Mine A & Mine B respectively? Can you have two Item names in your list in the editor that are the same or do I have to give them different Map Label names.
Thank you for any help in advance. I think if I can understand how to do this, it would open up a lot of possibilities in future maps. If I can make it through this first one without completely going insane. :mad: :eek: :D