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.
[06:24 am]
Oh_Man -- uh I mean, pfft no i'm not a robot
[06:24 am]
Oh_Man -- 01001001 00100000 01100001 01101101 00100000 01101110 01101111 01110100 00100000 01100001 00100000 01110010 01101111 01100010 01101111 01110100 00001010
[05:02 am]
NimoStar -- vtubers already behave as AIs so nobody would notice the difference
[03:42 am]
Symmetry -- If AI beat portal, then we can do an AI Vtuber
[03:24 am]
NimoStar -- Coming generations? Too much optimism I see
[03:05 am]
Symmetry -- The coming generations will have so much data online that their kids will never have to say goodbye (for a monthly fee)
[02:59 am]
Symmetry -- I mean it's not out of the question I suppose. An LLM could digitally replace people when they die. Imagine dead grandma messaging you to buy crypto
[02:56 am]
Symmetry -- Steadily convincing myself Oh_Man is secretly an LLM
[02:42 am]
Symmetry -- I need an AI to summarize my thoughts, damn it!
[02:42 am]
Symmetry -- Man I gotta stop getting stoned before I wander into the AI serious discussion
Please log in to shout.


Members Online: IskatuMesk, Sie_Sayoka