subtledoctor Posted January 8, 2018 Share Posted January 8, 2018 Opcode 12 seems to be one of these ones that splits parameter2 into two functions - in NI it shows as - Mode: Normal (0) - Damage Type: FIRE - 8 Anyone know how to use the Weidu XYZ_EFFECT functions with this? Is it, mode = bytes 1-2, and type = bytes 3-4? Should I convert it to a hex value? What I'm trying to do, btw, is add an effect that does 'stunning' damage (mode 0, type 2048) Quote Link to comment
Ardanis Posted January 8, 2018 Share Posted January 8, 2018 parameter2= 0 + ( 2048 << 16 ) Quote Link to comment
Avenger Posted January 8, 2018 Share Posted January 8, 2018 You can simply multiply type by 65536. But you can always try to do something fancier. Quote Link to comment
subtledoctor Posted January 8, 2018 Author Share Posted January 8, 2018 Ah, shift the type value 2 bytes over. I get it. Cool. (Didn't think of multiplying, heh) Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.