Alright well I've been trying to figure everything out on my own because I figure I'll learn it better that way. However I've come to the conclusion it's way too confusing and complicated for me to do so, and thus I'm here.
What I'm trying to do is thus: At the start of the game a civilian is created for each player. If that civilian moves into the designated region a dialog box button will appear and if they click that button it will kill their civilian and produce a specific unit at a specific point.
What I've been able to do: So with the way I have it now civilians are made but they are also made for players that are not in game (which I do not want, I only want players actually in the game to spawn a civilian but I don't know how to fix it.) When the civilian walks into the region the button appears and when I press the button it creates the unit I want in the region I want, however it does not kill the civilian, and the button remains on the screen ( I obviously want the button to disappear once the civilian is killed).
As the title states any assistance would be greatly appreciated, thank you for your time.
Sorry I had to put it into a code format to get the spacing to stay. On a better note, that is what I'm thinking that should be done. The only thing to do now is to find the specific functions that allow you to do that. Hope this helps : )
Thanks for taking the time to reply. What you've said kind of helps...but not entirely because I cant find the specific triggers that do the things you mention. There are so many and with so many parameters it's overwhelming >_< Like for instance just the one to "Kill" I cant find one that will simply "Kill Civilian For Player 1" or something like that I cant find where I could select it to kill a civilian specifically :S
If you could help me find what the triggers are actually called that I'll need to use that'd be amazing, thanks just the same :)
each command is grouped per object, so for your civilian as it is a unit, you go find the kill command in the "unit" group, dialogue in "UI" group, etc.
each command is grouped per object, so for your civilian as it is a unit, you go find the kill command in the "unit" group, dialogue in "UI" group, etc.
Yes I understand that, what I mean is...okay. I'm under Actions, I choose unit, and I choose, Kill Unit. By default it is at Kill "Triggering Unit" I click that to change it...but I cant find anywhere to select a specific unit unless it is a unit that is already placed on the map which is not what I want. I want it to kill any civilian unit not just one specific civilian that is already placed on the map. If I just use triggering unit that works I guess, but then later if a unit were to walk over that region that was not a civilian that unit would also die which is not what I want, I only want a civilian to die if it walks over that region.
One thing you should do is create a Civilian unit group and when you create the civilian for a player make a new action right after to add the last created unit to the Civilian unit group, Then kill the units in the specific region from the civilian unit group.
Alright well I've been trying to figure everything out on my own because I figure I'll learn it better that way. However I've come to the conclusion it's way too confusing and complicated for me to do so, and thus I'm here.
What I'm trying to do is thus: At the start of the game a civilian is created for each player. If that civilian moves into the designated region a dialog box button will appear and if they click that button it will kill their civilian and produce a specific unit at a specific point.
What I've been able to do: So with the way I have it now civilians are made but they are also made for players that are not in game (which I do not want, I only want players actually in the game to spawn a civilian but I don't know how to fix it.) When the civilian walks into the region the button appears and when I press the button it creates the unit I want in the region I want, however it does not kill the civilian, and the button remains on the screen ( I obviously want the button to disappear once the civilian is killed).
As the title states any assistance would be greatly appreciated, thank you for your time.
@Jadilus: Go
Basically, it sounds like triggers and if checks for those triggers. Some psuedo code:
Sorry I had to put it into a code format to get the spacing to stay. On a better note, that is what I'm thinking that should be done. The only thing to do now is to find the specific functions that allow you to do that. Hope this helps : )
@Supernumera: Go
Thanks for taking the time to reply. What you've said kind of helps...but not entirely because I cant find the specific triggers that do the things you mention. There are so many and with so many parameters it's overwhelming >_< Like for instance just the one to "Kill" I cant find one that will simply "Kill Civilian For Player 1" or something like that I cant find where I could select it to kill a civilian specifically :S
If you could help me find what the triggers are actually called that I'll need to use that'd be amazing, thanks just the same :)
each command is grouped per object, so for your civilian as it is a unit, you go find the kill command in the "unit" group, dialogue in "UI" group, etc.
Yes I understand that, what I mean is...okay. I'm under Actions, I choose unit, and I choose, Kill Unit. By default it is at Kill "Triggering Unit" I click that to change it...but I cant find anywhere to select a specific unit unless it is a unit that is already placed on the map which is not what I want. I want it to kill any civilian unit not just one specific civilian that is already placed on the map. If I just use triggering unit that works I guess, but then later if a unit were to walk over that region that was not a civilian that unit would also die which is not what I want, I only want a civilian to die if it walks over that region.
@Jadilus: Go
One thing you should do is create a Civilian unit group and when you create the civilian for a player make a new action right after to add the last created unit to the Civilian unit group, Then kill the units in the specific region from the civilian unit group.