Unit not executing order when it's a computer player

dianamod27

Member
Reaction score
1
Trigger:
  • Unit - Order Necromancer 0121 <gen> to Undead Necromancer - Raise Dead

That's all there is to it.
There is exactly one situation in which this order will not be executed: If the unit is owned by a computer. If it's owned by a neutral or user, it does.
I'm not running any AI, the unit has enough mana, the spell is available to it and there are corpses right next to it. I'm completely baffled. Does anyone happen to know why this is happening?
 

Dwalker501

New Member
Reaction score
0
Why set the Colour as -Computer-?

I think that when you set a color to Computer the AI takes over and starts making decisions. It could be the AI saying "what? you want me to cast raise dead.. err how about no"

You dont have to set a controller for the colours if you're playing with the player properties. On my maps I just leave the non USER units as -None- and that way I control the units by triggers.
 

Inflicted

Currently inactive
Reaction score
63
It's quite possible that the problem is related to something else.
Check the following:
- Is the base ability "Undead Necromancer - Raise Dead" ? (It cannot in some cases be a different base unit of the same type)
- Does the unit have enough mana points to cast the ability?
- Does the unit have the ability?
- Are there any triggers based off of ability casts that could interfere with this?
- Are there TechTree Requirments?
- Are the corpses of the correct type? (Some corpses cannot be used)

You could try test in single player with that unit owned by you to see if the unit works. If so, I suggest you remake the ability and try again.
 

dianamod27

Member
Reaction score
1
I always set them as computers, and this is the first time this has happened. Other orders work as I found out.
If you set controller to none, you can't even put them in teams, and you can't give them names.

It's quite possible that the problem is related to something else.
Check the following:
- Is the base ability "Undead Necromancer - Raise Dead" ? (It cannot in some cases be a different base unit of the same type)
- Does the unit have enough mana points to cast the ability?
- Does the unit have the ability?
- Are there any triggers based off of ability casts that could interfere with this?
- Are there TechTree Requirments?
- Are the corpses of the correct type? (Some corpses cannot be used)

You could try test in single player with that unit owned by you to see if the unit works. If so, I suggest you remake the ability and try again.

It's the correct base ability, the unit has enough mana, it has the ability, there are no other triggers interfering with this (the map is in a pretty early stage), there are no tech tree requirements, the corpses are footmen. I tried it in single player too, I'm just stunned by this problem. It only happens when the controller is a computer, even though there is no AI.
 

MP®

Member
Reaction score
11
It's quite possible that the problem is related to something else.
Check the following:
- Is the base ability "Undead Necromancer - Raise Dead" ? (It cannot in some cases be a different base unit of the same type)
- Does the unit have enough mana points to cast the ability?
- Does the unit have the ability?
- Are there any triggers based off of ability casts that could interfere with this?
- Are there TechTree Requirments?
- Are the corpses of the correct type? (Some corpses cannot be used)

You could try test in single player with that unit owned by you to see if the unit works. If so, I suggest you remake the ability and try again.

You didn't read his post very well, did you?
 

Inflicted

Currently inactive
Reaction score
63
You didn't read his post very well, did you?

Yes I did. I am giving many possible if different issues that could occur, its almost a check list to ensure that nothing has been missed.
This could be useful if something on the list was missed. Much more than your pointless post asking how well I read the OP.
 

dianamod27

Member
Reaction score
1
The only info I can still add is that the unit is a custom one based on the campaign's Kel'Thuzad necromancer, however I also tried it with standard necromancers and they also wouldn't cast the damn spell.
I also found out something peculiar: Converting the order function to JASS reveals that the order string is "instant".
Code:
call IssueImmediateOrderBJ( gg_unit_u00J_0121, "instant" )

Edit: Oh and changing it to "raisedead" or a custom string didn't work either. Not that it matters since "instant" works as long as it's not a computer doing it. Since other orders/spells work and the same unit owned by a different controller does cast Raise Dead, I'm just going to assume this is some kind of bug and instead base the ability on Water Elemental. I'd still appreciate any information on this weird issue very much.
 

Molehole

New Member
Reaction score
2
This is exactly same problem I had yesterday. I don't know about your spell but in my spell there was targets allowed: "non-hero". Thats why it worked only when I used it but when I putted my hero against the AI controlled boss it didn't work :D It took me long time to figure this out.

I hope this helped. If not then nvm. But go check the targets allowed anyways.
 

dianamod27

Member
Reaction score
1
The spell's targets are "dead" just like the regular Raise Dead.
I actually tried having completely standard necromancers cast it, and it didn't work either. I can't help but think it's something to do with the "instant" order string. I based the spell on Water Elemental now and it works, but I noticed that even if I change the spell's order string to something else, the trigger will still fire even though it uses the "waterelemental" string. I guess you have to import strings or something.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top