Paladin Falling question
#1
Posted 09 December 2005 - 04:59 AM
(this is the original code)
IF
FallenPaladin(Myself)
ReputationLT(Myself,14)
Global("GOODIE_TWO_SHOES","LOCALS",0)
THEN
RESPONSE #100
RegainPaladinHood()
END
IF
!FallenPaladin(Myself)
ReputationGT(Myself,13)
THEN
RESPONSE #100
SetGlobal("GOODIE_TWO_SHOES","LOCALS",1)
RemovePaladinHood()
END
thanks in advance
ronin
#2
Posted 09 December 2005 - 05:06 AM
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#3
Posted 09 December 2005 - 05:12 AM
ronin
#4
Posted 09 December 2005 - 05:14 AM
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#5
Posted 09 December 2005 - 05:38 AM
hmm
any other ideas Kulyok?
thanks for your help
ronin
#6
Posted 09 December 2005 - 05:42 AM
the short versio is that falling is both scripted and hard-coded - working around the scripting is straightforward, hacking BGMAIN.exe rather less so...
the only real solution - which is hardly that great - is to make a fighter kit that mimics a blackguard/ evil paladin, and give it innate abilities to overcome the lack of priest spells and undead-turning.
"A simple test of the relative merits of science and religion is to compare lighting your house at night by prayer or electricity" - A. C. Grayling
"EFF files have saves, too." - CamDawg
|| this is radio seanas || BP Series v3 || seanas at work ||
#7
Posted 09 December 2005 - 05:46 AM
ronin
#8
Posted 09 December 2005 - 06:01 AM
Ronin, your local variable is messed up. Try
Global("GOODIE_TWO_SHOES","LOCALS",1) instead of
Global("GOODIE_TWO_SHOES","LOCALS",0)
Also, add SetGlobal("GOODIE_TWO_SHOES","LOCALS",0) - in your first block (after Response), and Global("GOODIE_TWO_SHOES","LOCALS",0) in your second block (before Response), if you intend to have checks. IF GOODIE variable means fallen status, of course.
So, it should read like
IF
FallenPaladin(Myself)
ReputationGT(Myself,13)
Global("FALLEN_BECAUSE_OF_REP","LOCALS",1)
THEN
RESPONSE #100
SetGlobal("FALLEN_BECAUSE_OF_REP","LOCALS",0)
RegainPaladinHood()
END
IF
!FallenPaladin(Myself)
Global("FALLEN_BECAUSE_OF_REP","LOCALS",0)
ReputationLT(Myself,14)
THEN
RESPONSE #100
SetGlobal("FALLEN_BECAUSE_OF_REP","LOCALS",1)
RemovePaladinHood()
END
Edited by Kulyok, 09 December 2005 - 06:10 AM.
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#9
Posted 09 December 2005 - 06:11 AM
I looked at the threads over at G3 and they dont say its entirely impossible. That script above is from the antipal.baf in the TDD mod, I thought I could modify it to suit me.
I know a normal paladin gets his abilitys back when he gets a high enough reputation so I thought it would work regardless of the reputation number as long as the scripting was right.
ronin
#10
Posted 09 December 2005 - 06:14 AM
IWD NPC, Xan, The Sellswords, Back to Brynnlaw, Assassinations, Dungeon Crawl, Reunion, Branwen, Coran, Tiax, Xan BG1 Friendship
BG1 NPC, Romantic Encounters
#11
Posted 09 December 2005 - 06:35 AM
No... with LE the game automatically will Fall him, since his alignment is evil.
Sorry, bad luck.
He dont fall though, at character creation he is LE and I can play and he wont fall. Only if I get his rep high enough he will fall.
In the tp2 with add kit I allow him to only have LE for an alignment and it works. Just like the anti-paladin in the TDD kits.
ronin
Edited by ronin69hof, 09 December 2005 - 06:41 AM.






