Jump to content


Photo

what part of the spell is ADD_SPELL_EFFECT used for?


4 replies to this topic

#1 Nirran

Nirran
  • Member
  • 17 posts

Posted 20 November 2016 - 04:46 PM


Hello,

  I'm am trying to copy spell effects(NI) from one header to another(using WeiDU),however the effect I'm stuck on is set_glow_pulse and the documentation for ADD_SPELL_EFFECT doesn't list the fields that coinside with NI headings,for instance NI has fields for this opcode red-blue-green am I trying with the wrong patch_macro?

 

 

Nirran 



#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1467 posts

Posted 20 November 2016 - 06:51 PM

Use bitwise shift to set multiple byte-sized values within one argument. Should look like

parameter1 = (red << 8 ) + (green << 16) + (blue << 24)
parameter2 = location + (speed << 16)

Edited by GeN1e, 20 November 2016 - 06:55 PM.

"Uguu~ Boku Ayu."

#3 Nirran

Nirran
  • Member
  • 17 posts

Posted 21 November 2016 - 09:20 AM


ok tyvm

 

edit : that throws a parsing error

 

edit 2: got it,thnx for the help


Edited by Nirran, 21 November 2016 - 10:59 AM.


#4 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1467 posts

Posted 21 November 2016 - 11:02 AM

Probably a silly question, but did you use actual values for red, green etc.?

E.g. parameter1 = (80 << 8 ) + (160 << 24) will yield bluish violet.

Edited by GeN1e, 21 November 2016 - 11:04 AM.

"Uguu~ Boku Ayu."

#5 Nirran

Nirran
  • Member
  • 17 posts

Posted 21 November 2016 - 12:46 PM

At first I did then realized it was amnt instead of the words

 

Searched the weidu docs and realized what I was dong wrong

 

ty again for your help

 

Nirran





Reply to this topic