Demivrgvs Posted January 12, 2008 Share Posted January 12, 2008 If i add projectiles (via ADD_PROJECTILE) that should be removeable by Zone of Sweet Air i have to add a few entries to clearair.2da but i don't know which numbers will be assigned to the new projectiles when added. How shall i code it so that these projectiles are added to clearair.2da whichever is the projectile number assigned to them? Link to comment
CamDawg Posted January 12, 2008 Share Posted January 12, 2008 Using ADD_PROJECTILE ~MyMod/foo.pro~ sets a variable named foo, which you can use for assigning the projectile, appending to clearair.2da, etc. Link to comment
Demivrgvs Posted January 12, 2008 Author Share Posted January 12, 2008 Sorry i was forgetting about it. If anyone need this too it's really simple: ADD_PROJECTILE ~Folder_name\projectile_name.pro~ APPEND ~clearair.2da~ ~Projectile_Name %projectile_name%~ E.g: ADD_PROJECTILE ~Spells_rev\projectles\stinkcl.pro~ COPY ~Spells_rev\spwi2##\spwi213.spl~ ~override~ //Stinking Cloud SAY NAME1 @473 SAY UNIDENTIFIED_DESC @474 // Spell Name & Description WRITE_SHORT 0x98 %stinkcl% // projectile is assigned to the spell APPEND ~clearair.2da~ ~Stink Cloud %stinkcl%~ Link to comment
Demivrgvs Posted January 7, 2009 Author Share Posted January 7, 2009 Using ADD_PROJECTILE ~MyMod/foo.pro~ sets a variable named foo, which you can use for assigning the projectile, appending to clearair.2da, etc. ADD_PROJECTILE ~Folder_name\projectile_name.pro~APPEND ~clearair.2da~ ~Projectile_Name %projectile_name%~ This actually doesn't work as clearair.2da for some reason detects projectiles with their assigned variable/number (-1). Thus if the new .pro file is added as projectile (300) we can't simply append its variable (300), we have to append projectile (299). Link to comment
Mike1072 Posted January 7, 2009 Share Posted January 7, 2009 This actually doesn't work as clearair.2da for some reason detects projectiles with their assigned variable/number (-1). Thus if the new .pro file is added as projectile (300) we can't simply append its variable (300), we have to append projectile (299). Are you sure? If it does function this way, just do: ADD_PROJECTILE ~Folder_name\projectile_name.pro~ SET projectile_name -= 1 APPEND ~clearair.2da~ ~Projectile_Name %projectile_name%~ Link to comment
devSin Posted January 7, 2009 Share Posted January 7, 2009 Are you sure? If it does function this way, just do:Yes. In some places, numbering for projectiles starts at 0, and in other places, numbering starts as 1. It's confusing as hell, but that's the way it works. Go, BioWare! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.