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.
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
Please log in to shout.


Members Online: Oh_Man