• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Damage(udg_real) Bug

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
Problem : when i cast this spell with damage set as udg_realT[2] its does no damage & if i set it like ''300'' it hurt ennemy and can also hit me o_O dmg my first thinking tell me this part is wrong !!! im lost at the moment

Note : i didnt add all trigger would be 2 long if it needed i will pm it

  • Set P1[2] = (Owner of Caster_Unit)
  • Set RealT[2] = (2.00 x ((Real((Level of Kirin for (Casting unit)))) x (Real((Strength of (Casting unit) (Exclude bonuses))))))
  • Set UNITGRUP[3] = (Units within 250.00 of SpellPoint matching (((Matching unit) belongs to an ally of P1[2]) Equal to False))
  • Unit Group - Pick every unit in UNITGRUP[3] and do (Unit - Cause Caster_Unit to damage (Picked unit), dealing RealT[2] damage of attack type Chaos and damage type Universal)
 
Level 13
Joined
Nov 22, 2006
Messages
1,260
Maybe its this line

Set UNITGRUP[3] = (Units within 250.00 of SpellPoint matching (((Matching unit) belongs to an ally of P1[2]) Equal to False))

it excludes all the allies from the selection, but are you sure it excludes the owner of the caster too?

Btw, if that RealT variable doesnt do anything, maybe it doesnt have a value, try to check for that (because it would be weird if the variable doesnt work, but the direct value does, they should work equally)
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
The easiest way to check that, is to add game texts.
Just add a few texts like "RealT: Convert string to integer (RealT[2])".

Do that for the player group as well, check which players are in the player group, then you know exactly where the error is.
If you still can't solve the problem, post the results here and it'll be easier for us to find it ;)
 
Level 10
Joined
Feb 20, 2008
Messages
448
i think its exclude casting unit sometime when i cast spell near a hero its also dmg me >.> and there lot thing like this in my trigger variable dont work but fucntion does o_O but like apocalyspe said i will try it!! and if all text appear its mean problem from another way!!! i will try it 2d i will come with an answer if it work or not real soon

EDIT:
WE CAN CLOSE THIS TOPIC AFTER ALOT TESTING I FOUND BUG it was a variable that was definy at right time ^^ thx fo yall
 
Last edited:
Status
Not open for further replies.
Top