Skip to content

IP_CONST_ONHIT_ duplicate int values

4BOLTMAIN4BOLTMAIN Member Posts: 90
edited February 2022 in Builders - Scripting
In the toolset I found this when writing a script to return itemproperty ItemPropertyOnHitCastSpell(int nSpell, int nLevel) Obviously I am getting ERROR: MULTIPLE CASE CONSTANT STATEMENTS WITHIN SWITCH


int IP_CONST_ONHIT_ABILITYDRAIN = 18
int IP_CONST_ONHIT_BLINDNESS = 16

then

int IP_CONST_ONHIT_CASTSPELL_ENERVATION = 16
int IP_CONST_ONHIT_CASTSPELL_FEAR = 18


Im going to do some more research in a test mod and see what I discover.

Is there a way to fix this?

EDIT... The top 2 constants are not "ONHIT_CASTSPELL" constants. Problem solved.
Post edited by 4BOLTMAIN on
Sign In or Register to comment.