For example, if I wanted to use tlisp to decide which missiles a launcher could fire depending on whether the missile's entity declaration exists, could I do that?
In other words, I want to be able to add <Missile> elements that are generated using tlisp.
This would also be useful for making custom enhancers - for example, a weapon enhancer that has a damage bonus only when some other condition is true, such as having no shield installed.
Here's the code for the NAMI missile launcher if we need a place to start. Thanks if anyone can help!
Code: Select all
<ItemType UNID="&itNAMIMissileLauncher;"
name= "NAMI missile launcher"
attributes= "commonwealth, majorItem, NAMI"
level= "3"
frequency= "common"
value= "1500"
mass= "1000"
description= "This launcher is compatible with a full range of popular missiles including the KM100 Longbows and the XM900 Lucifers."
>
<Image imageID="&rsItemsNAMI2;" imageX="0" imageY="0" imageWidth="96" imageHeight="96"/>
<Weapon
fireRate= "30"
powerUse= "5"
launcher= "true"
>
<Missiles>
<Missile ammoID="&itFragmentationMissile;"/>
<Missile ammoID="&itKM100Missile;"/>
<Missile ammoID="&itKM120Missile;"/>
<Missile ammoID="&itKM500Missile;"/>
<Missile ammoID="&itKM550Missile;"/>
<Missile ammoID="&itXM300Missile;"/>
<Missile ammoID="&itXM900Missile;"/>
</Missiles>
</Weapon>
</ItemType>