Staredit Network

Staredit Network -> UMS Assistance -> Mass Spawning
Report, edit, etc...Posted by Canada.AotS on 2006-12-04 at 13:18:15
I am modding a Pokemon Catchers map right now.

One of the main features is that when you 'kill' (catch) a unit (pokemon), it is created at your base.

However, I found out that this only happens once for every unit type because the trigger for it wasn't preserved.

I thought adding preserve trigger would be a 'quick' fix (there was alot of triggers to add it to lol).

Turns out, with preserve trigger added whenever a unit is killed, that unit is Continuously created at the players base, and a text message that is supposed to say "you caught [unit]" is display continously as well.

Heres the general programming for these triggers:
Condition
- Kill (CurrentPlayer, Exactly, 1, [unit] )
Actions
- CreatUnit (1, [unit], [base location], CurrentPlayer)
- DisplayText (You caught [unit] )
- PreserveTrigger ()

Any help with this would be great.
In summary, what I need is for whenever a unit is killed at any point in the game, that unit is created at the current players base.

Thanks in advance!
Report, edit, etc...Posted by CheatEnabled on 2006-12-04 at 13:37:19
First of all, you are not modding. You are making a map. Then, for the trigger problems, that is because a kill score is added, and that does not go down. You have to use the triggers:

Player:
*The player that catches the pokemon*
Condition:
*the player with the pokemon* has a death score of 1 caterpi (for example)
Actions:
Set deaths for *the player with the pokemon* to 0 deaths.
Create 1 caterpi for Current player.
Preserve trigger

Report, edit, etc...Posted by spinesheath on 2006-12-04 at 13:54:35
Wonder how you want to detect which player "caugth" the pokemon, CheatEnabled pinch.gif

Since you can't set kills, this might be a tough one. Depends on how many pokemon can be "caught" at a time.
If you can be sure that it is low number, you can achieve pretty precise results by using both the deaths of certain units of the player that owns the pokemon, and the kills score of the pokemon-catchers.
If one player kills a pokemon, he gets a certain kills score. Sadly this is not always unique, but if you only use unique-score-units, we already have a solution:

C: PlayerX's kills score is exactly 50 (= zergling)
A: Set PlayerX's kills score to 0, catch pokemon, preserve

If the kill score is non-unique, you have to check which kinds of pokemon died recently, by checking the pokemon-owner's death values.

There always is a chance that an error occures when there are at least 2 pokemon that give the same kills score (drone, probe. scv), and two players kill different ones of these at the same time. But it should be unlikely.
Report, edit, etc...Posted by CheatEnabled on 2006-12-04 at 14:05:01
QUOTE(spinesheath @ Dec 4 2006, 07:54 PM)
Wonder how you want to detect which player "caugth" the pokemon, CheatEnabled pinch.gif

[right][snapback]599212[/snapback][/right]


I'm sorry about that one. cry.gif
Report, edit, etc...Posted by Canada.AotS on 2006-12-04 at 14:06:58
I said modding because I didnt make the original map.
I took the pokemon catchers map, and added a whole bunch o' stuff lol.

anyways, yah I'm not sure waht you guys mean.

could I use switches to do it? tongue.gif
This is becoming a headache -_-'
Report, edit, etc...Posted by Oo.Jamal.oO on 2006-12-04 at 15:43:19
If you used switches, it would look like this.

Trigger
Players:
¤ Player #
Conditions:
¤ Current Player kills at least 1 "Caterpi"
¤ Switch 1 is Cleared
Actions:
¤ Set Switch 1
¤ Set kill score for current player to 0
¤ Preserve Trigger


And then..

Trigger
Players:
¤ Player #
Conditions:
¤ Switch 1 is Set
Actions:
¤ Create 1 "Caterpi" for Current Player at "Spawn"
¤ Clear Switch 1
¤ Preserve Trigger
Report, edit, etc...Posted by spinesheath on 2006-12-04 at 15:57:47
"kills"

and then

"kills score"

dots.gif

EDIT: Ok, to keep it non-spam:

That won't work.
Stick to what I proposed, that's the best you have been told so far...
Report, edit, etc...Posted by fritfrat(U) on 2006-12-04 at 16:08:33
I'd recommend what spinesheath suggested, especially if you don't kill more than 1 unit at the same time. If you do, just do.. kills atleast 1, 2, 3, etc.. up until how many are on the map of each individual unit.
Next Page (1)