Ability freezing unit?

zaqer50

TH.net Regular
Reaction score
3
I have a dummy ability, and when you cast it on a unit, it "tames" them or changes their ownership to you and then removes the ability so you cna only have 1 "pet". For some reason whenever you tame something it freezes your guy. I know whatever is wrong is wrong with the part where it removes the ablility "tame". I just dont know what.

Code:
Tame
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Tame 
    Actions
        Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
        Unit - Remove Tame  from (Casting unit)
 
first of all what is your ability based off of that you are using
secondly add 2 variables, one being CastingUnitTame (unit) and another TargetUnitTame (unit) and set the values to casting unit and target of ability being cast.

makes it cleaner
 
and also i dont think that would work once u tame and the tamed unit dies, you cant tame again.

You could do in actions something like:

E: Begins casting an ability

C: Ability being cast = tame

A:Set CastingUnitTame to casting unit
Set TargetUnitTame to target unit of ability being cast

If
TamedUnit = nounit

Then
Change ownership
Set TamedUnit to last changed ownership unit
Else
Do nothing

Then another trigger going

Event a unit dies

Dying unit = tamedunit
tamedunit is equal to nounit = false

set tamedunit to nounit


so basically trigger 1 is doing when u cast tame if there is no unit that is currently tamed tame that unit else do nothing so which in that case u cast it on them nothing will happen... and if it costs mana instead of putting do nothing put (Order castingunittame to stop) so it costs no mana.

Then 2nd trigger is if tamedunit dies it will reset the variable so u can tame again.

Now this is just off the top of my head id have to check editor but also might wanna ask about begins casting an ability but i think its impossible to abuse.
 
But this answer my question, why does it freeze when it removes the ability? thats where the problem is.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top