Staredit Network

Staredit Network -> UMS Assistance -> unit creation
Report, edit, etc...Posted by Solitus3989 on 2005-08-23 at 15:14:42
i've posted once about this before, and some people were very helpful, but it just won't quite work.

i changed what i've wanted a little, but...

i want it like, whenever player 1 kills 100 enemy units, he gets another hero unit.

or something like, whenever hero unit dies, he gets another one.

http://www.staredit.net/index.php?showtopi...&hl=solitus3989

there is the topic where i last posted about this.

it should be like, whenever your kill score is at least 1, set it to 0, add one kill for an unused unit,
unused unit kills are exactly 100, create one (hero) at location spawn1

reset kill count for unit to 0.

i can't quite get it to work, but i have a hunch of maybe why it didn't work. i'll have to check later.

but if thats not right, could i get some more help?

gawd i wish i wasn't a n00b.
Report, edit, etc...Posted by MapUnprotector on 2005-08-23 at 16:42:54
The problem I see is that for the "add 1 kill for unused unit part" it should be add 1 DEATH. It's a death counter you are using to keep track of the kills that you have.

So instead of setting the unused unit's kills, set it to deaths for that unit, using the trigger SET DEATHS. I don't even think you can set kills.

Now another thing I see is that instead of doing exactly 100, make it at least 100, and then subtract 100, not set it to 0. That just might help with the whole accuracy of the counter.

Anyway the main problem is you are setting kills for the unused unit, not deaths.

Look at this tutorial for more information about death counters:
http://www.staredit.net/index.php?tutorial=124
Report, edit, etc...Posted by Corbo(MM) on 2005-08-23 at 16:47:28
well you can do like

+player X kills (at least, exactly) the quantity of 20
-create 1 (hero)

that will create the hero you want and to recover the hero you just do like

+player x brings 0 hero to anywhere
+player x kills are at least 20
-create the hero again

the 0 is for detecting that the hero diead and the kills at least 20 is to detect that he indeed has 20 kills to create the hero

of course the are diferent ways to do it

+condition
-action
Report, edit, etc...Posted by PCFredZ on 2005-08-23 at 19:00:21
QUOTE(corbo @ Aug 23 2005, 04:47 PM)
well you can do like

+player X kills (at least, exactly) the quantity of 20
-create 1 (hero)

that will create the hero you want and to recover the hero you just do like

+player x brings 0 hero to anywhere
+player x kills are at least 20
-create the hero again

the 0 is for detecting that the hero diead and the kills at least 20 is to detect that he indeed has 20 kills to create the hero

of course the are diferent ways to do it

+condition
-action
[right][snapback]296340[/snapback][/right]

He said "whenever player 1 kills 100 enemy units, he gets another hero unit", so your solution can't work because you cannot get new heroes.

Also, Solitus, do you want each of your Heroes to instaneously respawn when it's killed, or do you want all of them to respawn at once after all of them have died?
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-23 at 19:31:09
The problems devilesk spotted should fix your problems.

As for the respawn, just catch it with the condition "current player commands at most 0 ~"
Report, edit, etc...Posted by Oo.Jamal.oO on 2005-08-23 at 20:39:09
QUOTE(DT_Battlekruser @ Aug 23 2005, 07:31 PM)
The problems devilesk spotted should fix your problems.

As for the respawn, just catch it with the condition "current player commands at most 0 ~"

[right][snapback]296485[/snapback][/right]


Agreed. Anyway, gl with whatever ur doing, killls for civs are ez if u work at it
Report, edit, etc...Posted by Corbo(MM) on 2005-08-23 at 21:32:26
QUOTE(PCFredZ @ Aug 23 2005, 05:00 PM)
He said "whenever player 1 kills 100 enemy units, he gets another hero unit", so your solution can't work because you cannot get new heroes.

Also, Solitus, do you want each of your Heroes to instaneously respawn when it's killed, or do you want all of them to respawn at once after all of them have died?
[right][snapback]296462[/snapback][/right]


course it works if you want a new hero you just do a diferent trigger like now it is more kills or i just don't know...maybe i did not get what he wanted
but the basics are there biggrin.gif
Report, edit, etc...Posted by Solitus3989 on 2005-08-23 at 22:46:35
ok, well my friend and i play on a team against a bunch of insane computers. we both pick one hero, and we use that hero for awhile till he dies.

i think i will try, player one commands at most 0 of (specific hero)
create (specific hero) at location.

i think that will work. i'll give that a try for the next map.

we both sit down, make a map together combining ideas, then after the terrain is done, i go through and put in triggers and lil heal zones.

unit steps in this 3x3 grid square, hp restores, shields restore, energy etc etc. a few hyper triggers. 6 more insane computers... and you got yourself a good time.

which reminds me. can i get more than 6 computers on a map if 2 of us are humans?
Report, edit, etc...Posted by PCFredZ on 2005-08-23 at 22:53:09
QUOTE(corbo @ Aug 23 2005, 09:32 PM)
course it works if you want a new hero you just do a diferent trigger like now it is more kills or i just don't know...maybe i did not get what he wanted
but the basics are there biggrin.gif
[right][snapback]296623[/snapback][/right]

The trigger you posted is 1-time only, but you can just as easily make one that loops.

QUOTE(Solitus3989 @ Aug 23 2005, 10:46 PM)
ok, well my friend and i play on a team against a bunch of insane computers. we both pick one hero, and we use that hero for awhile till he dies.

i think i will try, player one commands at most 0 of (specific hero)
create (specific hero) at location.

i think that will work. i'll give that a try for the next map.

we both sit down, make a map together combining ideas, then after the terrain is done, i go through and put in triggers and lil heal zones. 

unit steps in this 3x3 grid square, hp restores,  shields restore, energy etc etc. a few hyper triggers. 6 more insane computers... and you got yourself a good time.

which reminds me. can i get more than 6 computers on a map if 2 of us are humans?
[right][snapback]296786[/snapback][/right]

Why would you need that many computer players?
Report, edit, etc...Posted by Solitus3989 on 2005-08-23 at 23:10:10
QUOTE(PCFredZ @ Aug 23 2005, 09:53 PM)
Why would you need that many computer players?
[right][snapback]296802[/snapback][/right]


because we can beat 4-5 insane computer on the same team. if we work together.

we need more than 6, pretty soon. trust me. i need more. lol.we are getting too good.
Report, edit, etc...Posted by MapUnprotector on 2005-08-23 at 23:16:37
QUOTE(Solitus3989 @ Aug 23 2005, 10:46 PM)
ok, well my friend and i play on a team against a bunch of insane computers. we both pick one hero, and we use that hero for awhile till he dies.

i think i will try, player one commands at most 0 of (specific hero)
create (specific hero) at location.

i think that will work. i'll give that a try for the next map.

we both sit down, make a map together combining ideas, then after the terrain is done, i go through and put in triggers and lil heal zones. 

unit steps in this 3x3 grid square, hp restores,  shields restore, energy etc etc. a few hyper triggers. 6 more insane computers... and you got yourself a good time.

which reminds me. can i get more than 6 computers on a map if 2 of us are humans?
[right][snapback]296786[/snapback][/right]


You could use p9-12 as comps.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-24 at 02:53:52
No, you can't. They have static alliance statuses.
Report, edit, etc...Posted by PCFredZ on 2005-08-24 at 08:37:29
QUOTE(DT_Battlekruser @ Aug 24 2005, 02:53 AM)
No, you can't.  They have static alliance statuses.
[right][snapback]297047[/snapback][/right]

Can you run AI scripts for them?
Report, edit, etc...Posted by Daedalus on 2005-08-24 at 09:39:32
I thought that wouldn't work good or something? But don't know anythink for sure, so ignore me.

Well, instead of making more comps you could give them hero's too, give them large bases from the beginning, make your own hero's weaker, give enemy more (starting) recources and you and your mate less, etc. Simple as that.
Report, edit, etc...Posted by MapUnprotector on 2005-08-24 at 15:15:17
QUOTE(DT_Battlekruser @ Aug 24 2005, 02:53 AM)
No, you can't.  They have static alliance statuses.
[right][snapback]297047[/snapback][/right]


Yes you can use them, you just can't have them attack anyone.
Report, edit, etc...Posted by DT_Battlekruser on 2005-08-24 at 19:22:21
QUOTE(PCFredZ @ Aug 24 2005, 05:37 AM)
Can you run AI scripts for them?
[right][snapback]297115[/snapback][/right]


I don't think so.

QUOTE(devilesk @ Aug 24 2005, 12:15 PM)
Yes you can use them, you just can't have them attack anyone.
[right][snapback]297366[/snapback][/right]


You can use them as neutral units, but that's about it; and P9-12 units would have to be invincible since research says static alliance is enemy all...
Report, edit, etc...Posted by MapUnprotector on 2005-08-24 at 20:28:27
QUOTE
You can use them as neutral units, but that's about it; and P9-12 units would have to be invincible since research says static alliance is enemy all...


You can use them to move around and do other stuff with them smile.gif
Next Page (1)