|
Post by bruainan on Feb 18, 2006 16:11:29 GMT 1
Hi all I started w3 map editor 3 days ago and i started to make a starcraft like defense map (in hungarian) but i cant solve a problem.
I'd like the map if player 1 kills 15 units then create a credit unit (peasant) at a location. Well in starcraft i know how to make it, but here i dont know how to set it. (my biggest problem is that I cant make a trigger where i can set the number of units I'd like it something like this Player 1 kills exactly 15 any units create 1 peasant at location 'create credit here') I started to look after it but I klost myself at the value equal to humbug, but i guess that will solve my problem.
I'm sure that it will make a problem too to buy units for credits because at the unit enters region i cant set that how many units.
I hope i found the best place to ask and i will get an answer.
|
|
|
Post by Ghost on Feb 18, 2006 16:45:42 GMT 1
i will look into world editor in some time and do it for ya i think you will have to use many variables, like a unit is killed owner of killing unit equal to player 1 killed unit not equal to player 1 add +1 to kills <gen>* and 2nd trigger current number of kills <gen> equal to 15 create 1 credits at centre of ......... etc. kill <gen>* its variable
|
|
|
Post by bruainan on Feb 18, 2006 16:46:59 GMT 1
Ohhh very thx!!!!
|
|
|
Post by Ghost on Feb 18, 2006 16:49:43 GMT 1
if u got even a bit expierience with triggers + variables ou should be able to do that
|
|
|
Post by bruainan on Feb 18, 2006 17:22:46 GMT 1
erm which action is the add +1 to kills <gen>*? I'm sorry for being such a noob.
|
|
|
Post by Ghost on Feb 18, 2006 17:51:01 GMT 1
|
|
|
Post by bruainan on Feb 18, 2006 18:11:47 GMT 1
Well this is a 1 player map. Gee well these variables are a bit hard for me. amybe because im not perfectz in english so its a bit hard to see it over what belongs to what and how. now i see what i shall do learn it (LOL) but i went to google maybe if there's a tutorial about everything (like variables)etc and i found this forum, well i guess it worthed it!
|
|
|
Post by Ghost on Feb 18, 2006 21:29:13 GMT 1
|
|
|
Post by 4ever92hours on Feb 18, 2006 21:35:39 GMT 1
variables r kinda hard
|
|
|
Post by Ghost on Feb 19, 2006 12:03:20 GMT 1
nah, i thought so but they are easy
|
|
|
Post by bruainan on Feb 19, 2006 16:49:56 GMT 1
Yea maybe ill get them someday. Very Thx for the help now it works Now another thing. how can i set that i the player brings 2 units than etc or he bings 7 to another playe. so well it would look like this Hidra worths 7 credits archer worths 1 credit elite archer worths 2 credits if player 1 brings 7 credits to reg xy create a hidra at reg yx. Now its kinda same but a bit differet And the map is almost ready. i have the lvl-s teleports etc. only need this nuts and change unit propertys
|
|
|
Post by Ghost on Feb 19, 2006 16:52:41 GMT 1
maybe,
action a unit enters region
condiiton entering unit equal to credits number of entering units equal to 7
action create x unit at x region
|
|
|
Post by bruainan on Feb 19, 2006 19:07:20 GMT 1
and i think credits is a variable? Hmmm now i start to get it... but its still a bit hard to me
Very thx!
|
|
|
Post by Ghost on Feb 19, 2006 19:23:06 GMT 1
no, credits aint variable there should be condition unit type or something but number of credits could be variable
|
|
|
Post by bruainan on Feb 19, 2006 19:25:37 GMT 1
|
|