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

Back* from the grave

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.
[10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[2024-5-04. : 1:05 am]
Vrael -- that's better
[2024-5-04. : 12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[2024-5-03. : 10:18 pm]
Vrael -- who says I'm not a total madman?
[2024-5-03. : 2:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
Please log in to shout.


Members Online: Roy