Weird bug with a random ability

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
All of the units in all my maps suddenly began receiving a random spell (one same spell for all, per map) at the start of the game, without costing them a point. This happened since I implemented PDD to those maps, don't wanna blame nobody, just saying.
Spells are based on channel.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
What is PDD even?

Disable/Delete PDD thing and see if the problem still occurs.
 
Level 11
Joined
Jan 23, 2015
Messages
788
No, 'Channel' isn't:
[hidden="Important Notes]
Life Drain does not work with this system, so you should use a triggered version of this spell if you want to use it.
Same for Finger of Death, if you want to use this spell bug free with this system, you should use a triggered version of it.
If you use damage modifiers by setting the damage amount variable, you have to use GetUnitLife, GetUnitMaxLife and SetUnitLife instead of GetWidgetLife, GetUnitState for UNIT_STATE_MAX_LIFE and SetWidgetLife.
The boolean udg_PDD_SPELL_RESIST_AUTO_DETECT is only neccessary set to true if you want to use a customized damage table with spell damage resistance above 100%. If this is not the case, it should be set to false, as the system is faster then and still works correct.
As already mentioned you can't use the spell reduction ability when using this system (runed bracers and elunes grace). If you want to use them, you can trigger them by using the damage modifiers. Runed bracers is already considered in this system, so you don't have to code it.[/hidden]

But it still looks like it is, I've tried to change the spell order ID, but that didn't helped at all, does this mean I can't use any spell based on 'Channel' in my map with PDD?
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
You forgot to update the initialization of the system and change the abilities to the proper ones.
Go to your object editor and find the two abilities that were required for your map.
Then find their rawcodes (a 4 character code "unique" for each OE Type) by pressing [ctrl]+[d].
Type those two rawcodes in the DamageEvent trigger where two other rawcodes are placed.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Because in the test map, the other abilities which used the default rawcodes were not created yet.
When you create a new ability it makes a new rawcode starting from A000, then A001, A002, etc, etc, etc.
In your own map, the A000 and A001 were already used for other abilities but in the test map, those were still avaiable.
When you copied the abilities from the PDD map into yours, it created new rawcodes of A000 and A001 in your test map but something like A01d and A01e in your own map. (Based on how much other custom abilities you had.)
 
Status
Not open for further replies.
Top