Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How does one create a EXP and Life System
How does one create a EXP and Life System
Jun 7 2009, 8:01 pm
By: m.0.n.3.y  

Jun 7 2009, 8:01 pm m.0.n.3.y Post #1



So I'm wondering how to make an EXP system, a good example would be similar to the one in Temple Seige. You kill stuff, you get EXP, and after enough EXP you get a token thing to upgrade your stuffs.

Also, how do you make a life system. Say you have a zergling with 1,000 hp, but since you have low stats, its max hp is 50% or 500. So how do i make it so the zerglings hp doesn't go over 50% (because the lings life regenerates over time) while allowing it to be attacked, so it can loose hp and eventually die?

Any help at all is appreciated, thanks guys.



None.

Jun 7 2009, 8:11 pm Vi3t-X Post #2



Player accumulates X death score (unit kill score?)
Subtract Y score, add Z civilian at location A.


Switch 1 is set.
Player brings at least one HERO to location B.
Set HP to 50%.
(And various other switches for varying HP amounts).


To prevent a zergling from regenerating hp, you could theoretically spawn a unit to attack it. Something like a guardian.



None.

Jun 7 2009, 8:12 pm Vrael Post #3



http://www.staredit.net/maplantis/index.php?sid=9baa6d2e81;wiki=45
http://www.staredit.net/wiki.php?cata=3
http://www.staredit.net/wiki/Virtual_Hit_Points
Kills to cash can be modified to kills to exp.



None.

Jun 7 2009, 8:32 pm m.0.n.3.y Post #4



Yeah but, for the lifes thing im talking about again, a good example would be Temple Seige or NEO Custom Hero wars. In TS, you choose the Hydralisk, but you're unit is not maxed out on hp because you havn't upgraded it yet. How do I do something like that, Where even though for say a hydralisk has a max hp of 1000, how do i make it so its hp only regenerates to 500, but it can still be attacked etc. And then, if you bring a token to the "upgrade life section" (like in temple seige) it upgrades its max hp to say 750.

How do i do that?



None.

Jun 7 2009, 9:19 pm ForTheSwarm Post #5



You can't really stop a hydra from regenerating UNLESS you do direct damage, where you move a scarab to the hydra every regen cycle.

Triggers for HP increasing:
Code
Current Player suffers exactly 0 deaths of "unused unit".
Current Player brings at least 1 hydra to "heal".

Set HP for 1 hydra owned by current player at "heal" to 50%.
Preserve trigger.


Code
Current Player brings at least 1 "level up token" to "increase HP".

Modify death count for current player: add 1 for "unused unit".
Preserve trigger.


Code
Current Player suffers exactly 1 deaths of "unused unit".
Current Player brings at least 1 hydra to "heal".

Set HP for 1 hydra owned by current player at "heal" to 75%.
Preserve trigger.




None.

Jun 7 2009, 10:05 pm Norm Post #6



Zerg HP will always regenerate even if you set a temporary maximum. You should just make sure your game has enough action to make the small amount of HP regeneration insignificant.



None.

Jun 18 2009, 2:29 am poison_us Post #7

Master has given Dobby a doctorate! Dobby is free!

Quote from Norm
You should just make sure your game has enough action to make the small amount of HP regeneration insignificant.

Or have a huge amount of HP and attack for every unit :bleh:




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:21 pm]
@:@ -- this community still going strong?
[04:30 pm]
Oh_Man -- yeah, probs
[03:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[03:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-27. : 1:14 am]
Symmetry -- https://staredit.net/topic/18932/ check it
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
Please log in to shout.


Members Online: @:@