Jump to content


Photo

Adding to CLEARAIR.2DA not working


  • Please log in to reply
7 replies to this topic

#1 Ulb

Ulb
  • Modder
  • 373 posts

Posted 01 April 2018 - 02:29 AM

Another issue.

I'm trying to make my cloud spell clear-able by the zone of sweet air op code but it just doesn't seem to work.

 

I'm appending Clearair.2da with this code

 

APPEND ~CLEARAIR.2DA~ ~Dream Dust           %UB!DWPR%~ UNLESS ~%UB!DWPR%~
(APPEND ~CLEARAIR.2DA~ ~Dream Dust          410~ UNLESS ~410~)

(Using the 410 one for testing on an installed projectile, but it shouldn't change anything)

 

The line gets added just fine and looks good compared to the other lines in the 2da file but the projectile doesn't get cleared by zone of sweet air anyway?

 

PS: I tried it with Dream_Dust and the projectile name, just in case there is some naming convetion that doesn't like spaces but that didn't help either..



#2 temnix

temnix
  • Member
  • 983 posts

Posted 01 April 2018 - 09:29 AM

Check the numbers of the projectiles when selecting from the menu inside spells vs. what they are in CLEARAIR.



#3 Ulb

Ulb
  • Modder
  • 373 posts

Posted 01 April 2018 - 10:13 AM

Thank you!

 

So it's the ("projectile number" -"1")?

 

Strange that iesdp doesn't mention that at all...

 

This file defines which projectiles are cleared by the Zone of Sweet Air effect (#273).
In BG2EE we have:

2DA V1.0
0
                Projectile 
Stinking_Cloud  94         
Cloudkill       186        
Death_Fog       276        
Writhing_fog    331        

 

 

So, now I just have to find out how math operations work in WeidU.

 

 

SET PRO_NMB = ("410" - "1")

 

doesn't seem to work, with or without quotation marks and parentheses.. :blush:

 

 

 

 

 

 

 

 

 

 



#4 Ulb

Ulb
  • Modder
  • 373 posts

Posted 01 April 2018 - 02:04 PM

NVM, got it. Thanks! :)



#5 temnix

temnix
  • Member
  • 983 posts

Posted 01 April 2018 - 03:48 PM

You are welcome. What does Dream Dust do?



#6 Ulb

Ulb
  • Modder
  • 373 posts

Posted 01 April 2018 - 06:26 PM

Save or sleep for one round, 1 turn duration



#7 temnix

temnix
  • Member
  • 983 posts

Posted 02 April 2018 - 01:11 PM

You mean, it knocks them out every round?



#8 Ulb

Ulb
  • Modder
  • 373 posts

Posted 02 April 2018 - 01:20 PM

Yes