ability and unit id's

perkeyone

something clever
Reaction score
71
what is significant about them?
is there a way to change the id after i make a unit or ability?
 

xombie

New Member
Reaction score
2
If you're using Jass NewGen then you can set the raw-code when you create the unit. If you want to change it for an existing unit, then just copy+paste the unit and it will prompt you for the raw-code.

If you're not using NewGen, then I would imagine there is no easy way to do it.
 

perkeyone

something clever
Reaction score
71
ok that solves how to change them if i need to
but i still dont understand what is significant about them
 

Azlier

Old World Ghost
Reaction score
461
The ID is pretty much the name of that object. Imagine of no human had a name, nor any way to identify them. You need to get a certain person's attention from a distance. Normally, you would shout their name. But there are no names. What are you going to do?
 

perkeyone

something clever
Reaction score
71
well i was just wondering if something bad would happen if more than one spell used the same id and stuff like that.

ive never used ability ids before. is it a jass thing?
 

saw792

Is known to say things. That is all.
Reaction score
280
More than one spell cannot have the same ability ID. That would stop them being unique.
 

CaptDeath

New Member
Reaction score
103
no if you have 2 spells with the same idea it will choose the ability listed first and cast that nomatter which hotkey or ability that was clicked
 

saw792

Is known to say things. That is all.
Reaction score
280
'Ability ID' is not 'Base Order ID', CaptDeath.
 

perkeyone

something clever
Reaction score
71
well it doesnt give me any error messages if i make two ability with the same id.
does newgen just not know any better?
what will happen if two abilities/units/etc have the same id?
i mean what does "unique" mean in this particular scenario.
 

saw792

Is known to say things. That is all.
Reaction score
280
Well, that ability IDs must be unique (as in not repeated at all) for them to function correctly. I have no idea what will happen if you try them in game. It may crash. If not, triggered effects from one spell will be run when either spell is cast.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top