Hi! Two questions to scenario design pros!
Short version:
1) Deleting resources via triggers?
2) Make "modify attributes" effect work on units that have a changed name?
Long version:
1) For a scenario I'm in the process of making, I would like to be able to delete resources that are created via triggers.
I've found decent workarounds (which work in my special case) for deleting resources on the ground - because they don't double up when one is created on another one. However, with fish, every time a new fish is placed on one existing before hand, they actually both stay up.
I tried modifying attributes, killing, deleting and replacing an object and nothing seems to work.
I thought of creating some ai villagers (I have ai players to spare for this), who gather these resources at an insane rate and then are deleted. However it's a lot of work and very case-specific and I'll need this done a lot, so I'm hoping for a more systematic solution.
2) I create units via triggers and change their names by "change object name" effect. Afterwards, the changes done by the "modify attribute" effect don't affect them. I've tried resetting the name to the original and it doesn't seem to work.
It seems like the Change Name creates a separate instance of this unit, perhaps with a different ID. Maybe there's a way to change the name through "modify attribute"?
Thanks in advance,
Bouli
Short version:
1) Deleting resources via triggers?
2) Make "modify attributes" effect work on units that have a changed name?
Long version:
1) For a scenario I'm in the process of making, I would like to be able to delete resources that are created via triggers.
I've found decent workarounds (which work in my special case) for deleting resources on the ground - because they don't double up when one is created on another one. However, with fish, every time a new fish is placed on one existing before hand, they actually both stay up.
I tried modifying attributes, killing, deleting and replacing an object and nothing seems to work.
I thought of creating some ai villagers (I have ai players to spare for this), who gather these resources at an insane rate and then are deleted. However it's a lot of work and very case-specific and I'll need this done a lot, so I'm hoping for a more systematic solution.
2) I create units via triggers and change their names by "change object name" effect. Afterwards, the changes done by the "modify attribute" effect don't affect them. I've tried resetting the name to the original and it doesn't seem to work.
It seems like the Change Name creates a separate instance of this unit, perhaps with a different ID. Maybe there's a way to change the name through "modify attribute"?
Thanks in advance,
Bouli