Staredit Network > Forums > SC2 Assistance > Topic: I need variable costs
I need variable costs
May 16 2010, 8:25 pm
By: Biophysicist  

May 16 2010, 8:25 pm Biophysicist Post #1



I need to make the (mineral) cost of an ability be determined by the value of a certain (custom) variable of the unit that uses the ability. Any ideas?

EDIT: Oh, there will be many units of this type, all with the same ability, not all owned by the same player.

Post has been edited 1 time(s), last time on May 22 2010, 4:42 am by Biophysicist.



None.

May 22 2010, 4:35 am Biophysicist Post #2



Shameless bump. I know you all hate me and that I suck and am useless, but this is getting ridiculous.



None.

May 22 2010, 4:53 am LooKe Post #3



If there aren't too many possibilities you could do something like this:
Code
Change Ability
   Events
       What ever it is that changes your variable
   Conditions
       Your wanted variable == 1
   Actions
       Tech Tree - Allow the wanted ability for player 1
       Tech Tree - Disallow the first unwanted ability for player 1
       Tech Tree - Disallow the second unwanted ability for player 1


Then just set the ability up how they have it setup at a building (level 1 on top of 2 on top of 3) and I think that'll work.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Roy