HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adv. shared control and AI?

01-11-2004, 12:26 PM#1
Morre
Hi,

I'm trying to make a map which allows you to take and leave control of another team. What I want to do is this:

1. The other team shall harvest gold and lumber, but not construct buildings. Lumber should probably be a priority.

2. When you take or leave control of the other team, all workers (peasants) resume their current tasks, meaning they will keep harvesting whatever they're harvesting, or just stand where they're standing.

I've tried doing this in a number of ways, none of which is working perfectly, so to speak. It's possible, but not good. What I'm thinking is, maybe I could use the system that's activated when a player leaves a melee game; you get full control over units and buildings, and the resources are separated (which is a bonus, I'm currently doing that another way). I'd probably need an AI script for the computer, but I can't get it working (I'm not really into AI stuff). Now to my question: Is it possible to activate and deactivate the "player left" system, and in that case, how?

Thanks in advance,
//Morre

EDIT: Since this is a combined AI/Triggering post, I chose to post it here. If it should be in the AI/JASS forum, go ahead and move it. Thank you.
01-11-2004, 07:43 PM#2
35263526
I'm okay with this being here, but I think you'll get more responses in the AI/JASS Forum. Just to be clear, you haven't done anything wrong, but you'll probably get answers if I move it.

MOVED
01-14-2004, 12:19 PM#3
Morre
Too bad you don't know. It'd really help with my map. The AI is not the real problem, but I'd really like to see that "player left"-system for sharing. Can't seem to find it, not even sure if it's possible to simulate that the player is leaving... or whatever you'd do to make it happen.

EDIT: Never mind this post, I think I got it working. Sorry to bother you.