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.
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[2026-10-09. : 1:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Please log in to shout.


Members Online: Milestone