Jump to content

Adding projectiles to clearair.2da


Demivrgvs

Recommended Posts

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

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
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
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...