Page 2 of 2

Re: Change projectiles?

Posted: Sun Jul 24, 2016 7:53 pm
by loop
Spoiler: show
PixelPest wrote:
Jayce 777 wrote:
PixelPest wrote: Again.
READ. WHAT. I. SAID.
When did I mention player.section. Never
Whoa, take it easy! I'll just research some codes.

Did research on the Red Birdo, and I came up with this:

Code: Select all

function onTick()
      for _, n in pairs(NPC.get(40, -1)) do --for all Birdo Eggs in all sections
            n.id ==210,player.section --turn Birdo Eggs into Rinkas
      end
end
 
I suck at coding.
Oops! forgot the end again!
Okay. I'm going to try to not flip out, but you haven't followed my instructions over and over again and you have absolutely no idea what you're doing. You know absolutely nothing of the basics of coding and keep on just randomly throwing stuff out that will not work. == is used for comparisons and = for declaring. And please explain to me, why do you think player.section needs to be there?

Code: Select all

function onTick()
      for _, n in pairs(NPC.get(40, -1)) do --for all Birdo Eggs in all sections
            n.id = 210 --turn Birdo Eggs into Rinkas
      end
end 
Goldarnit! I thought I changed that before. Sorry for being such a hassle. :shock: