If a spell requires a ranged attack, does it rely on a Str or Dex based attack roll like they did in NWN?

If a spell says its constitution based like poison, does that depend on my characters Con score or the enemies?