Talk:Scripting surface types
From Divinity Engine Wiki
Can't Edit
Apparently I can't edit, so here's an ordered list so you don't have to count to the surface you are curious about.
- SurfaceNone
- SurfaceFire
- SurfaceFireBlessed
- SurfaceFireCursed
- SurfaceFirePurified
- SurfaceWater
- SurfaceWaterElectrified
- SurfaceWaterFrozen
- SurfaceWaterBlessed
- SurfaceWaterElectrifiedBlessed
- SurfaceWaterFrozenBlessed
- SurfaceWaterCursed
- SurfaceWaterElectrifiedCursed
- SurfaceWaterFrozenCursed
- SurfaceWaterPurified
- SurfaceWaterElectrifiedPurified
- SurfaceWaterFrozenPurified
- SurfaceBlood
- SurfaceBloodElectrified
- SurfaceBloodFrozen
- SurfaceBloodBlessed
- SurfaceBloodElectrifiedBlessed
- SurfaceBloodFrozenBlessed
- SurfaceBloodCursed
- SurfaceBloodElectrifiedCursed
- SurfaceBloodFrozenCursed
- SurfaceBloodPurified
- SurfaceBloodElectrifiedPurified
- SurfaceBloodFrozenPurified
- SurfacePoison
- SurfacePoisonBlessed
- SurfacePoisonCursed
- SurfacePoisonPurified
- SurfaceOil
- SurfaceOilBlessed
- SurfaceOilCursed
- SurfaceOilPurified
- SurfaceLava
- SurfaceSource
- SurfaceWeb
- SurfaceWebBlessed
- SurfaceWebCursed
- SurfaceWebPurified
- SurfaceDeepwater
- SurfaceFireCloud
- SurfaceFireCloudBlessed
- SurfaceFireCloudCursed
- SurfaceFireCloudPurified
- SurfaceWaterCloud
- SurfaceWaterCloudElectrified
- SurfaceWaterCloudBlessed
- SurfaceWaterCloudElectrifiedBlessed
- SurfaceWaterCloudCursed
- SurfaceWaterCloudElectrifiedCursed
- SurfaceWaterCloudPurified
- SurfaceWaterCloudElectrifiedPurified
- SurfaceBloodCloud
- SurfaceBloodCloudElectrified
- SurfaceBloodCloudBlessed
- SurfaceBloodCloudElectrifiedBlessed
- SurfaceBloodCloudCursed
- SurfaceBloodCloudElectrifiedCursed
- SurfaceBloodCloudPurified
- SurfaceBloodCloudElectrifiedPurified
- SurfacePoisonCloud
- SurfacePoisonCloudBlessed
- SurfacePoisonCloudCursed
- SurfacePoisonCloudPurified
- SurfaceSmokeCloud
- SurfaceSmokeCloudBlessed
- SurfaceSmokeCloudCursed
- SurfaceSmokeCloudPurified
- SurfaceExplosionCloud
- SurfaceFrostCloud
- SurfaceDeathfogCloud
Lofgren (talk) 06:52, 4 April 2018 (CEST)
Changing to ordered list
That's actually really useful, I added the actual values of the surface types to the list :) However, I do advise to use the actual enumeration instead of the integer representation. The values might change after all.
- The integers are returned by some functions and used as inputs in others, so it's helpful to know. Hopefully they wouldn't change something so fundamental at this point, but I guess you never know.Lofgren (talk) 12:40, 4 April 2018 (CEST)
- Ah, but it's better to use e.g. 'SurfaceFire' instead of '0'. The value of 'SurfaceFire' might change its value from '0' to '1' for some reason and in that case it wouldn't break anything if you used 'SurfaceFire' as the value. 'SurfaceFire' represents a value in code, but you don't have to worry about what exactly that value is. When you start using actual numbers you certainly have to worry about possible changes. Rimevan (talk) 13:00, 4 April 2018 (CEST)