So in my game each player has a nuke to throw down when things get messy... The ability can be placed on any location on the map atm where you have visibility, i was wondering if i could make like a region on the map and you would only be able to plant the nuke within the specified region.
Is it possible?
After i read what you said i came up with the code down below.
I dont know if its good at all, i couldnt select the region i made, i could only set XYZ for the region.
Maybe im using wrong functions, i just scrolled through the list and picked what made most sense.
And i dont know what to do like disable the unit ability for 2 secs?
I feel kinda embaressed for what i tried here ^ ^
Help is neccessary! :(
i also dont know when i disable the ability why cant i choose the ability itself only the "index command"?!??
Hey, im getting really confused...i cant set target point of ability is in region which you specified i should put in the if statement, if been searching for ages, there is no action like that.
Ive also been searching trough every function to stop an ability or stop actions for a specified unit, or stop and ability while the triggerd unit is casting, Ive tried to disable the ability in code below, but that doesnt work, i also tried it without the if statement.
As you can see below i also tried using a condition comparing the abilitytriggiring target point to something liek "targetpoint ability used in region" but nothing like that exists
hey,after i saw the repost of the thing i couldnt find i pushed on and eventually found out how to get the point target is in region to work but it was actually pointtargetcontains region if you want to find it in the function list. Anyways i tested it with messages so it work. Now for the ability to stop while its casting is still a problem, anyone know how to fix this?
NukeInRegionEventsUnit-(Triggeringabilitytargetunit)usesGhost-TacNukeStrikeatEffect3-Caststage(Ignoresharedabilities)LocalVariablesConditionsActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If((Triggeringabilitytargetpoint)isinnuketeam1)==TrueThenUI-Display"Target ability point = in region"for(Allplayers)toChatareaElseUnit-Cancelprogressbarof((Triggeringabilitytargetunit))slot(Currentlevelforability(AbilityofGhost-TacNukeStrike)on(Triggeringunit))UI-Display"Target ability point = not in regio..."for(Allplayers)toChatarea
try order stop, maybe interruptions flags are checked in the ability. I never played with those but seen them.
Field Ghost - Nuclear Strike
Ability: Uninterruptible +
also try Field Ghost - Nuclear Strike
Ability: Validate + (make sure cast is there)
just guessing tho
If your cast is 5 sec make sure its your cast stage which triggers this and make sure its not "Uninterruptible"
Btw. you really making your life harder with those codes in GUI :p
hey, although it isnt the way i fixed it, yeh the flags were set for uninterruptible and also cancel was flagged, i removed all flags, adjusted some other data, tested a few times and it wouldnt work. Now i have tested some more other functions and i got 1 to work although it looks a bit sloppy :ppp
no just wondering .... you said you had trouble finding " point in region"
just go to conditions, select catagory region, type "point" in the seach and you should only see a couple options
just letting you know the functionality is there
to stop the unit all you have to do is order the unit to do a move-stop overriding existing orders. This should interupt the nuke ability..... You shouldnt have to disable the ability either
what's up with odd event. use any ability and do condition check is triggering ability == your ability
"Triggering ability target unit" , you can't use "triggering" functions in event definitions, because nothing triggered yet. This call would be if you want to receive cast ability target unit, like who was the target of fireball. But its legit only for abilities of target-unit type.
Hey, back with antoher question :]
So in my game each player has a nuke to throw down when things get messy... The ability can be placed on any location on the map atm where you have visibility, i was wondering if i could make like a region on the map and you would only be able to plant the nuke within the specified region. Is it possible?
greets
you can check on event ability being cast in first phase and see if target point is in region
@Nerfpl: Go
HEy, thnx for the reply again.
After i read what you said i came up with the code down below. I dont know if its good at all, i couldnt select the region i made, i could only set XYZ for the region. Maybe im using wrong functions, i just scrolled through the list and picked what made most sense. And i dont know what to do like disable the unit ability for 2 secs? I feel kinda embaressed for what i tried here ^ ^ Help is neccessary! :(
i also dont know when i disable the ability why cant i choose the ability itself only the "index command"?!??
@SouLCarveRR: Go
Hey, im getting really confused...i cant set target point of ability is in region which you specified i should put in the if statement, if been searching for ages, there is no action like that. Ive also been searching trough every function to stop an ability or stop actions for a specified unit, or stop and ability while the triggerd unit is casting, Ive tried to disable the ability in code below, but that doesnt work, i also tried it without the if statement. As you can see below i also tried using a condition comparing the abilitytriggiring target point to something liek "targetpoint ability used in region" but nothing like that exists
im loooost please help :[
Comparison->Region->Point is in region
@Nerfpl: Go
hey,after i saw the repost of the thing i couldnt find i pushed on and eventually found out how to get the point target is in region to work but it was actually pointtargetcontains region if you want to find it in the function list. Anyways i tested it with messages so it work. Now for the ability to stop while its casting is still a problem, anyone know how to fix this?
try order stop, maybe interruptions flags are checked in the ability. I never played with those but seen them.
Field Ghost - Nuclear Strike Ability: Uninterruptible +
also try
Field Ghost - Nuclear Strike Ability: Validate + (make sure cast is there)
just guessing tho
If your cast is 5 sec make sure its your cast stage which triggers this and make sure its not "Uninterruptible"
Btw. you really making your life harder with those codes in GUI :p
when your looking through actions you know how to select the catagory and then do a search within that catagory right?
@Nerfpl: Go
hey, although it isnt the way i fixed it, yeh the flags were set for uninterruptible and also cancel was flagged, i removed all flags, adjusted some other data, tested a few times and it wouldnt work. Now i have tested some more other functions and i got 1 to work although it looks a bit sloppy :ppp
again thx for the help, its greatly appreciated!
for anyone who ever needs it:
@SouLCarveRR: Go
are you calling me an idiot? :p
@Rice87: Go
no just wondering .... you said you had trouble finding " point in region"
just go to conditions, select catagory region, type "point" in the seach and you should only see a couple options
just letting you know the functionality is there
to stop the unit all you have to do is order the unit to do a move-stop overriding existing orders. This should interupt the nuke ability..... You shouldnt have to disable the ability either
what's up with odd event. use any ability and do condition check is triggering ability == your ability
"Triggering ability target unit" , you can't use "triggering" functions in event definitions, because nothing triggered yet. This call would be if you want to receive cast ability target unit, like who was the target of fireball. But its legit only for abilities of target-unit type.