Staredit Network

Staredit Network -> UMS Assistance -> Level Heal
Report, edit, etc...Posted by indecisiveman on 2005-07-13 at 19:10:41
Yes it's me again, asking for help on my RPG. Now many people have helped me with this certain trigger but I don't quite understand it. It's the heal trigger. For my RPG you gain levels, each levelg ets you +5% health increase. What I need to know is how to make my Healing location heal to the upgraded version each time. Some say Death Counts. My problem with death counts is I don't understand them too well. Another said Switches. I hate switches...

If someone could explain one or the other methods to me in lamen terms that would be great. Here is the scenario I am current;y using for my RPG:

Player 1 is player I want healed. Unit=Hero Wraith. He starts at 15% and each level gets +5%. Let's say level 2, he's at 25%. Location=Heal. Please make a trigger which would show me what to do.

*waits for slayer to coem and save the day, then say "Good luck with your RPG! biggrin.gif "*
Report, edit, etc...Posted by UED77 on 2005-07-13 at 19:23:09
Death counters are easy. You can store numbers in them. Using the SET DEATHS action, the value of a death counter is changeable, and the counter's value is detectable using the DEATHS condition. This is why they are perfectly suited for keeping track of levels.

When your Wraith is level one, preferably when the gameplay begins, set a death counter, say, one for the computer player and for a unit that cannot actually be killed (powerups are a reasonable choice), and set its value to 1.

Every time your Wraith gains a level, add 1 to this counter using SET DEATHS.

Now, for the healing area triggers, create as many triggers as there are levels. All of them should include the "bring" condition, and the first one should have "Player has suffered the deaths of exactly 1 Data Disc", meaning your hero is level one. The action should include healing to the percent appropriate for level one.

For the level two healing trigger, copy the previous trigger entirely, increment the death counter value in the conditon by 1, and change the percent of HP in the actions.

Replicate this as many times as necessary.

Good luck with your RPG biggrin.gif

UED77
Report, edit, etc...Posted by Forsaken on 2005-07-13 at 19:26:10
Well... This is right up my ally! tongue.gif


Ok:

Let's say you have 5 levels

Conditions:
Always

Actions:
Set Unit HP to "X"%
Set Deaths to 1 for unused unit for current player


Conditions:
Deaths = 1
Player Brings "unit" to "Y" location

Actions:
Set Unit HP to "X"%
Preserve Trigger

Now, you'll do your leveling up system. However you do this is up to you.


Level 2

Conditions:
Your Conditions to allow the next level too be reached.
Deaths = 2
Player Brings "unit" to "Y" location

Actions:
Set Unit HP to "X"%
Set Deats to 2 for player
Preserve Trigger

Level 3

Conditions:
Your Conditions to allow the next level too be reached.
Deaths = 3
Player Brings "unit" to "Y" location

Actions:
Set Unit HP to "X"%
Set Deats to 3 for player
Preserve Trigger

Level 4

Conditions:
Your Conditions to allow the next level too be reached.
Deaths = 4
Player Brings "unit" to "Y" location

Actions:
Set Unit HP to "X"%
Set Deats to 4 for player
Preserve Trigger

Level 5

Conditions:
Your Conditions to allow the next level too be reached.
Deaths = 5
Player Brings "unit" to "Y" location

Actions:
Set Unit HP to "X"%
Set Deats to 5 for player
Preserve Trigger


If you can see. Each level, the death counter is set to one level higher. I.E. Level 1 = 1 death, level 2 = 2 deaths etc....

So, what you'll want to do is, every level add 1 death. That way, you save switches. Also, how you get to level up is up to you. I am just showing you what happens after you have leveled up.

If you don't understand, let me know. I'll try and elloborate more.



ADDITION:
I was posting while UED77 owned the topic. So, you'll probably have the concept down after reading both of the replies.
Report, edit, etc...Posted by Moogle on 2005-07-13 at 19:46:55
Chaos:
I been over this trigger heaps of times with you, even showed you demo maps where you didnt need location on your building just a location thats always centered on your hero. Not that hard, you just forget.

- Player 1 Suffers 0 Deaths of Marine
- Player 7 Brings 1 Beacon to P1 Location
- Set hitpoints of unit owned by Player 1 to 5%
- Display Text if you wish
- Play a Wave if you wish or use transmission
- Preserve Trigger

When you level just add 1 death to marine, dont have use marine just example.

- Player 1 Suffers 1 deaths of marine
- Player 7 Brings 1 Beacon to P1 Location
- Set hitpoints of unit owned by Player 1 to 10%
- Display Text if you wish
- Play a Wave if you wish or use transmission
- Preserve Trigger

Pretty simple, i assume you will get it this time or next bah.

\\Moogle
Report, edit, etc...Posted by Corbo(MM) on 2005-07-13 at 19:49:44
that's too hard....
you said you hate switches -.- i was gonna say use switches however i got another idea

use one unit you don't really use like flag or something and have another location (empty and far away from game area)
when you go a level up create one flag at that location and the trigger should be
Player "X" brings at least 1 anyunit to location"beacon heal"
Player "X" brings exactly "[amount of flags in location]"

Modify units hitpoints to "%"

where X is the same player and where the amount of flags indicate the level you're in ex: you are in level 3 so you have 3 flags in that location

if you did not get it tell me to repeat might do it more easy when finding the right words and if you get it tell me to so i'll feel like a good teacher biggrin.gif
Report, edit, etc...Posted by Moogle on 2005-07-13 at 19:51:33
QUOTE(corbo @ Jul 14 2005, 10:49 AM)
that's too hard....
you said you hate switches -.- i was gonna say use switches however i got another idea

use one unit you don't really use like flag or something and have another location (empty and far away from game area)
when you go a level up create one flag at that location and the trigger should be
Player "X" brings at least 1 anyunit to location"beacon heal"
Player "X" brings exactly "[amount of flags in location]"

Modify units hitpoints to "%"

where X is the same player and where the amount of flags indicate the level you're in ex: you are in level 3 so you have 3 flags in that location

if you did not get it tell me to repeat might do it more easy when finding the right words and if you get it tell me to so i'll feel like a good teacher biggrin.gif
[right][snapback]261977[/snapback][/right]


... that just basic ye'old way. Not hard its simple. Sheese.

\\Moogle
Report, edit, etc...Posted by indecisiveman on 2005-07-13 at 19:52:51
Forsaken: Thanks for making the triggers for me, but I included Units Playeers and location names so I wouldn't be confused, and instead you used "y" and "x" and stuff, but thasnks anyways. tongue.gif

UED: Yeah that's what Evil_Moogle said, just I was a little confused. I think I get it now...A quick question. If, say, I had three heroes in RPG(which I do...), would I need separate triggers for all of them? Or would copying and modifying a few things be the same? Also, I would need to use three different counters right(i.e. three different items with different death totals)?

Edit#1: Read Froggy's post, I know you've told me a TON of times how to do this. Every time after that I couldn't go back and re-look at what you typed. Meaning I forgot...This way I can always come back to post and read what to do. Plus, you know me, doesn't get crap(remember I had trouble allying two comps...).
Report, edit, etc...Posted by Moogle on 2005-07-13 at 19:55:03
If you have location on heal then just give too force one, set to,
current player brings unit to location \ set hitpoints for current player at location. Pretty much all you need do.

\\Moogle
Report, edit, etc...Posted by Corbo(MM) on 2005-07-13 at 20:05:24
QUOTE
... that just basic ye'old way. Not hard its simple. Sheese.

\\Moogle


he wanted something easy i guess and if you have 3 heroes make it to the force or if the levels are separated make the trigger as Anyunit so won't be a problem selecting all units
Report, edit, etc...Posted by slayer766 on 2005-07-13 at 21:33:40
QUOTE
*waits for slayer to coem and save the day, then say "Good luck with your RPG!  "*


lol. Yeah I would have helped you but everyone else beat me to the punch. sad.gif Anyways Good luck with your RPG! biggrin.gif lol
Next Page (1)