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.
[02:35 am]
Symmetry -- Begone!
[2026-10-24. : 6:58 pm]
Symmetry -- :deez:
[2026-10-24. : 6:14 pm]
l)ark_ssj9kevin -- :des:
[2026-10-24. : 6:14 pm]
Symmetry -- ah, desc. I tried dsc and des
[2026-10-24. : 6:13 pm]
l)ark_ssj9kevin -- manually editing URL fixes it https://staredit.net/site/members/0/minerals/desc/
[2026-10-24. : 6:12 pm]
l)ark_ssj9kevin -- ya member list sorting by descending broken for all columns tbh
[2026-10-24. : 5:52 pm]
Symmetry -- https://staredit.net/site/members/0/minerals/asc/ why does it sort by ascending and not descending :hurr: and how did that guy get -963 minerals?
[2026-10-24. : 5:47 pm]
Symmetry -- TFW you go to donate to SEN but you can't anymore :(
[2026-10-24. : 5:12 pm]
Symmetry -- The LLMs are coming for our mineral stocks!
Please log in to shout.


Members Online: Symmetry