© ?{SPOILERS FREE}[“Doritos included"]Editing Google, CodeCombat hero slots,CodeCombat map, Doritos and other stuff LOL [Also Some Movie Ratings + Some Songs]FORTNITE!/#wayTooLongTopicDescription #TheTopicIsConfusingLOL.#IlluminatiConfirmed#OOF (Part 1)

I have this really cool code i wana share. But i need FULL credit. I have copyright :smile: .
Here it is. It will make your pet say stuff in a random order

def onSpawn(e):
    while True:
        enemy = pet.findNearestByType("munchkin")
        i = Math.random()
        i = i*2
        i = Math.round(i) 
        # Find and fetch a "potion":
        random = ["All hail EnderLord832!", "Kill them!", "I know you can do it !!"]
        pet.trick()
        # Find and fetch a "potion":
        pet.say(random[i])
        pet.moveXY(hero.pos.x, hero.pos.y)

You can change random to whatever you want your pet to say

1 Like

I mean like giving out solutions are not allowed

1 Like

Yea i put that in the title

1 Like

Thanks, we dont want solutions in here. But funny codes are perfectly ok as long as they are appropriate and aren’t a solution to any level

1 Like

btw @Archion, your randomization isn’t perfectly fair.

Middle term has 2x more chance to be said than the two terms at the beginning and the end.

3 Likes

You said “Flower Art and much More”, so here it is :smiley:

2 Likes

so just add another “all hail enderlord” and “I know you can do it”

1 Like

I know i did that on purpous. I like the kill them more because it is more usefull in multiplayer.

@Seojin_Roy_Lee please do not put down my topic by putting rude things in my topic title

1 Like

Ok @Not_a_User lets talk here.

1 Like

got it.(20 characters)

1 Like

Yep i want to get a lot of replies and hearts over here

1 Like

ok, who knows, we might even get more replies then the other one

1 Like

Yea BTW do you want to join my clan it is in my user card

1 Like

ok, sure(20 characters)

Joined(20 character)

its legion of lightning right?

Yep thats the right one

1 Like

I have joined(2000000)