Aller au contenu

Photo

what's wrong with this script?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
psiiijay

psiiijay
  • Members
  • 258 messages
http://pastebin.myrror.net/3476

It's a spell, compiles fine, but every time I cast it on a larg group of 5 and above (I know It's an insane combination, it's for a test module) with one or more creatures with high HP the game really slows down for some reason till the spell is over...
wth??

http://pastebin.myrror.net/3476

Modifié par psiiijay, 21 octobre 2013 - 01:06 .


#2
rjshae

rjshae
  • Members
  • 4 497 messages
You're applying two visual effects plus an AoE to every target? Err...

Have you tried each of the visual effects in isolation?

#3
Dann-J

Dann-J
  • Members
  • 3 161 messages
Each Fog of Bewilderment AoE is running it's own scripts (OnEnter, OnExit, HB). Each target creature is probably being picked up multiple times by different FoB instances, if the targets are all close to each other. Try moving the FoB AoE outside of the loop, so only one of them gets created (instead of one for each creature!).

#4
psiiijay

psiiijay
  • Members
  • 258 messages
Worked like a charm!
Thanks!!