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.
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: DarkenedFantasies