Jump to content


Mornmagor

Member Since 25 Oct 2012
Offline Last Active Jan 01 2013 11:34 AM

Topics I've Started

RegainPaladinHood() script help

27 October 2012 - 12:07 AM

Hello folks :]

I recently involved myself with trying to learn how to mod certain things in the game, but truth be told, although i'm slowly getting the hang of this, i have some serious trouble regarding an issue.

I made a kit for Paladins, a darker type of paladin, my version of the antipaladin if you want.

What i want to do is script it so that when the guy falls, he regains his paladinhood immediately, kind of like when you regain your status in the paladin stronghold quest if you're fallen.

I'm going to assume that RegainPaladinHood() sets your rep back to 10 as well, although i'm not sure.

So far i'm thinking of scripting it like this :

IF
  Kit(Myself,AAA) // If AAA is the name of the Kit
  FallenPaladin(Myself)
   // In this line i don't know what to put about reputation
   // Again i don't know if i should put another line, like a global something, i have no idea, i think it should work without it?
THEN
  RESPONSE #100
RegainPaladinHood() // Or maybe ActionOverride(Myself,RegainPaladinHood()) ?

I honestly have no idea, i tried to make it work but it won't :/

The action.ids file is in the override folder.

Any help would be greatly appreciated :]

I feel like i've stepped in an area beyond my comprehension for now, but i still don't want to give up D:

Edit: Supposedly adding this to the BALDUR.BCS file should work :
IF
  FallenPaladin(Player1)
  OR(3)
  Alignment(Player1,LAWFUL_EVIL)
  Alignment(Player1,NEUTRAL_EVIL)
  Alignment(Player1,CHAOTIC_EVIL)
THEN
  RESPONSE #100
    ActionOverride(Player1,RegainPaladinHood())
END

But it still doesn't work, i have no idea what to do to make it work :/