Surfpup's tConfig Mod Wiki
Advertisement
noframe

Under Construction
This page has been marked as under construction, which means information may change rapidly as it updated, or that the page is awaiting updates.


Difficulty: noframe
Time: ???


How to Use aiPretendType and More: A Practical Guide[]

In this guide I will teach you how to use two commands: aiPretendType and killPretendType.

They're both incredibly simple commands, but are effectively arcana to us. Why?

Because nobody documented them, which I shall remedy.

aiPretendType[]

Let's start with this one. I want to make a recolored Green Laser.

[Green Laser]
aiStyle=1
alpha=255
friendly=True
height=4
light=0.75
magic=True
penetrate=3
scale=1.4
tileCollide=True
type=20
width=4
Blue Laser

Blue Lazer Made by:Virtulox

Now that I've got that, I make a sprite. I won't cover that here. So now I change the type to -1 to allow it to use the sprite.

[Blue Laser]
aiStyle=1
alpha=255
friendly=True
height=4
light=0.75
magic=True
penetrate=3
scale=1.4
tileCollide=True
type=-1
width=4

But wait! Now it falls like an arrow ingame! Nothing but the type's changed. This is where aiPretendType comes in handy.

[Blue Laser]
aiStyle=1
aiPretendType=20
alpha=255
friendly=True
height=4
light=0.75
magic=True
penetrate=3
scale=1.4
tileCollide=True
type=-1
width=4

Now our Blue Laser shoots straight and true! Just use a projectile's Type entry in aiPretendType and it will copy its AI patterns.

killPretendType[]

What if I want to make that Magic Mining from the Projectile Class page's comments working? It sounded like a great idea!

[Magic Mining]
aiStyle=29
alpha=100
friendly=True
height=14
light=0.8
magic=True
penetrate=1
scale=1
tileCollide=True
aiPretendType=["Flamelash"]["Magic Mining"]["aiPretendType"]
type=-1
width=14

Now let's examine that. Now that we know how aiPretendType works, let's fix that aiPretendType line, and the non-existent aiStyle 29.

[Magic Mining]
aiStyle=9
alpha=100
friendly=True
height=14
light=0.8
magic=True
penetrate=1
scale=1
tileCollide=True
aiPretendType=34
type=-1
width=14

But wait! That doesn't explode at all! Now that's where killPretendType comes in.

[Magic Mining]
aiStyle=9
killPretendType=29
alpha=100
friendly=True
height=14
light=0.8
magic=True
penetrate=1
scale=1
tileCollide=True
aiPretendType=34
type=-1
width=14

Now that sunnova monkey explodes like a good ol' stick of Dynamite!

Afterword[]

I wrote this tutorial after seeing the lack of info on these two commands. I hope this has at least partially remedied that, and helped one or two people.

-ZI

Advertisement