ok let me c if i can give u a demonstration here without taking too much time....
event: unit uses ability-create turret
action: increase turrentvariable +1
if then else-
if value of turretvariable=3 or less then do nothing
if then else-
if value of turretvariable =4 then destroy turret#1 (first created tower that would have to be designated a unit variable upon creation), then: modify variable value of turretvariable =turretvariable -1
let me get a little more indepth...your event would be unit uses ability, then you'd have to find the ability your referencing...
you would first need an integer variable thats initially 0 and goes up 1 everytime the abliity is used...then when it is used you'd need to run a conditions check that checks the valuable of the integer variable and use the value to tell it what to do, IE: destroy unit 1 or 2 or 4 or whatever
easiest way to do it is have an integer variable, everytime u make a turret increase value by 1, and everytime u make a turrent run a seperate trigger that checks the integer value, if its 3 or less then do nothing if its more then you'd have to use other variables for each of the 3 turrets to tell it to kill the oldest one, make sense?
well sweet, problem solved, now if people would join to help this test...if ya'll got a couple minutes could you send me a friend request and help me test this for about 10-15 minutes? email is [email protected] a maze tower defense 4x teams of 2 building mazes of towers, the triggering is about 90% the content is about 50%, would be nice if i could get some help, thanks
i believe when u modify a field, it makes a backup of the original but your modified version is the selectable version if say your selecting that unit in trigger function, IE: change zerglings hitpoints to 60...editors backs up original, make a trigger to create 1 zergling....when u select the unit there wont be more than 1 option of a zergling but the one available should have 60 HP
hi ya'll, been workin on a map for about 2 weeks now , a tower defense...published a newer version to test online with some random people if ne1 would join my game that is...however the button for open to public is grey'd out with a tooltip that says "cannot open to public since mode is set to custom"...anybody know how to turn this feature off so i can open it to public?
0
i thought structures were units
0
you can use the "unit count for player" condition, then specify which type of unit for which player so on so forth
0
yeah no kidding...duh...gimme a minute let me look at some options
0
@mfirelord: Go
referencing the unit would be "last created unit"
0
ok let me c if i can give u a demonstration here without taking too much time....
event: unit uses ability-create turret
action: increase turrentvariable +1 if then else- if value of turretvariable=3 or less then do nothing if then else- if value of turretvariable =4 then destroy turret#1 (first created tower that would have to be designated a unit variable upon creation), then: modify variable value of turretvariable =turretvariable -1
make sense?
0
let me get a little more indepth...your event would be unit uses ability, then you'd have to find the ability your referencing... you would first need an integer variable thats initially 0 and goes up 1 everytime the abliity is used...then when it is used you'd need to run a conditions check that checks the valuable of the integer variable and use the value to tell it what to do, IE: destroy unit 1 or 2 or 4 or whatever
0
easiest way to do it is have an integer variable, everytime u make a turret increase value by 1, and everytime u make a turrent run a seperate trigger that checks the integer value, if its 3 or less then do nothing if its more then you'd have to use other variables for each of the 3 turrets to tell it to kill the oldest one, make sense?
0
isnt there a different way to do it like, perhaps add a stock time and stock limit? almost like a purchase
0
have you tried something like...
Event Unit is created
condition unit "triggering unit" belongs to player 1
action add triggering unit to unit group "player1units"
something of that nature perhaps?
0
well sweet, problem solved, now if people would join to help this test...if ya'll got a couple minutes could you send me a friend request and help me test this for about 10-15 minutes? email is [email protected] a maze tower defense 4x teams of 2 building mazes of towers, the triggering is about 90% the content is about 50%, would be nice if i could get some help, thanks
0
oh no kiddin well now that i feel like an idiot, thanks for the help lol, aint used this editor since WC3...lot different
0
@Flopjack: Go
i believe when u modify a field, it makes a backup of the original but your modified version is the selectable version if say your selecting that unit in trigger function, IE: change zerglings hitpoints to 60...editors backs up original, make a trigger to create 1 zergling....when u select the unit there wont be more than 1 option of a zergling but the one available should have 60 HP
0
hi ya'll, been workin on a map for about 2 weeks now , a tower defense...published a newer version to test online with some random people if ne1 would join my game that is...however the button for open to public is grey'd out with a tooltip that says "cannot open to public since mode is set to custom"...anybody know how to turn this feature off so i can open it to public?