Should a caster fail to overcome Spell Resistance, the spell simply doesn’t effect the target (although it may still effect other creatures, if it’s an area-of-effect spell). Even should Spell Resistance be overcome, the usual defenses against spells must still be checked, including succeeding at a Ranged Touch Attack or surmounting a target’s Saving Throw(s).
At the mansion of the Swordlord Jamandi Aldori, adventurers have gathered, lured by the promise of dominion should one of them conquer the nearby Stolen Lands and oust its current overlord - the Stag Lord. You are one such adventurer, and Jamandi’s offer isn’t just a benevolent call-to-arms to make the Stolen Lands safe for normal folk, there’s political angles to its conquest, and the ultimate allegience of its new ruler. More than that, however, a sinister, primordial force has her own interests in the Stolen Lands, and a desire to see new rulers rise… and fall. The Pathfinder: Kingmaker guide includes a full walkthrough of the game’s main campaign, including various side quests, companion quests and strategies.