Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: slwoing energy regain
slwoing energy regain
This topic is locked. You can no longer write replies here.
Mar 27 2009, 3:48 pm
By: puckstop101  

Mar 27 2009, 3:48 pm puckstop101 Post #1



does anyone no how to slow energy regain for a unit.... specifcully a sciense vessel, what i want to do is make the sciense vessel have irradte but it take forever to actully get it, so i want to slow the rate of energy regain for the sceinsce vessel any ideas?



None.

Mar 27 2009, 4:10 pm Pigy_G Post #2



Well what you could do is constantly set the science vessels energy to zero. Then use a seperate timer like a death count based timer to actually set the time you want it to have to wait, this would work quite well considering you could make it the exact amount of time you wanted. It'd be done like this, also this would need hyper triggers btw.

Condition:
Player has suffered at least 1 death of unit TIMER.
Action:
Set energy for 1 Science Vessel owned by player X at location anywhere to 0.
Preserve Trigger.

Condition:
Player has suffered at least 1 death of unit TIMER
Action:
Subtract 1 Death for unit TIMER.
Preserve Trigger.

Condition:
Always
Action:
Set deaths for Player X exactly 600 for TIMER.

Condition:
Player has suffered exactly 0 Deaths of TIMER.
Scenario time is at least 2 seconds.
Actions:
Modify Unit Energy for Terran Science vessel owned by player X to 5.

This will give th player irradiate energy(Assuming it costs 5) around 50 seconds into the map.



None.

Mar 27 2009, 4:26 pm puckstop101 Post #3



ty but i still want the player just to look at the sciense vessel and see the amount of energy left till he can use it....



None.

Mar 27 2009, 4:44 pm NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

That's not really possible without EUDs.

The closest you'll get is what Pigy suggested.
You could use a trigger duplicator to have 1 trigger for each single amount of energy based on your death count timer.
The problem with that method is what happens / should happen when the player casts irradiate. You cannot detect when he casts the irradiate (or another, cheaper spell), and since you always set the energy it would get replenished immediately.

You basically have 2 options:
- Either you let the player cast it as often as he wants (just keep preserving the energy at 250),
- or you give him a time frame to cast it and after that time the energy and your death count timer is being reset to 0 (and don't preserve the energy once set to 250).




Mar 27 2009, 4:46 pm Pigy_G Post #5



The problem is you can only set a % of energy, you cannot add or subtract unless you are using EUDs to detect the energy.
How long do you need them to wait? you could always just make irradiate cost like 250.

And for my timer you could use a leaderboard so they can see how much time is left before they can cast it.



None.

Mar 27 2009, 4:48 pm puckstop101 Post #6



UEDs? what are those srry this is my first time trying to make a map

EDIT:
for my map... (a cops and robbers map) i have the energy set for 250 but its still to fast in comenig back beacuse its like an instant kill to use it so i want to make it rare that they can use irradte.. .also i already have a leaderborad set up for kills

Post has been edited 1 time(s), last time on Mar 27 2009, 4:54 pm by NudeRaider. Reason: merged posts



None.

Mar 27 2009, 4:50 pm Pigy_G Post #7



well if it's your first time I wouldn't recommend them, but EUD stands for extended unit death, and it's a buffer overflow that leds you calculate over sc's regular values and read memory, example would be detecting if a unit fires, detecting where players mouse is located, detecting hp, ect. EUD Actions have been patched unless you downgrade sc or everyone playing has an enabler hack, however conditions are still possible, heres some useful links if you want to learn how to use EUDs.

http://www.staredit.net/topic/6256/



None.

Mar 27 2009, 5:18 pm puckstop101 Post #8



okay thanks man



None.

Mar 27 2009, 5:19 pm rockz Post #9

ᴄʜᴇᴇsᴇ ɪᴛ!

You can't do this, give up on it. If you haven't heard of EUDs (the only way to do it, and it's ridiculously inefficient) then they are out of your league.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[04:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: jun3hong