I have an income system on my map based on the score - produce stat and it's all working brilliantly except for one thing.
The basic setup of the map is that you have a nexus and it's spawning units, every time it spawn a unit you get so much income based on the produce score of the unit. Like I said that all works great. My problem is that I want there to be a button that lets you upgrade the basic nexus into an advanced nexus for spawning better units and when you do that I want it to add a certain amount to the income which would mean making it add to the produce score.
I currently have it set up using a morph ability but when I have it morph it doesn't apply the score. I tried having it just add to the income variable but that won't work with how I have it set up.
Is there anything I can do as far as anyone knows or am I better of just having it remove the basic nexus and then spawning the advanced nexus where it was?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have an income system on my map based on the score - produce stat and it's all working brilliantly except for one thing.
The basic setup of the map is that you have a nexus and it's spawning units, every time it spawn a unit you get so much income based on the produce score of the unit. Like I said that all works great. My problem is that I want there to be a button that lets you upgrade the basic nexus into an advanced nexus for spawning better units and when you do that I want it to add a certain amount to the income which would mean making it add to the produce score.
I currently have it set up using a morph ability but when I have it morph it doesn't apply the score. I tried having it just add to the income variable but that won't work with how I have it set up.
Is there anything I can do as far as anyone knows or am I better of just having it remove the basic nexus and then spawning the advanced nexus where it was?