Page 1 of 1

change npcs back and forth?

Posted: Thu Dec 30, 2021 4:48 am
by _SleepyWhirl_
hello! i wanted to ask if its possible with lua or somethin to change npcs to switch in serten scenarios?
lets say mario collects a star, and during the time the star is active the enemies change from one kind of npc with their own stats to a different kind of npc with different stats, and then once the star has lost its effect they change back to their first state, is that somewhat possible?

Re: change npcs back and forth?

Posted: Thu Dec 30, 2021 7:25 am
by deice
while i haven't done extensive testing into what parameters it maintains, i recommend trying the transform() instance method, read more about it here.