Jump to content


Photo

Paladin Falling question


  • Please log in to reply
10 replies to this topic

#1 ronin

ronin
  • Modder
  • 2114 posts

Posted 09 December 2005 - 04:59 AM

The following code is how a paladin falls and then is able to regain his paladin status. I need to somehow reverse that code so if I have an evil paladin and his rep gets to 11 he will fall, but when his rep goes back to 10 he regains his abilities. I have messed with the code and cant figure it out. Can anyone help me please?

(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 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 09 December 2005 - 05:06 AM

You need to change places ReputationLT and ReputationGT.

#3 ronin

ronin
  • Modder
  • 2114 posts

Posted 09 December 2005 - 05:12 AM

so in the top portion I change it to ReputationGT and in the bottom portion I change it to ReputationLT?

ronin

#4 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 09 December 2005 - 05:14 AM

Yes, I think so. Also, you mentioned 10 and 11 in your post, but it's 13 and 14 in your code. There might be some inconsistency.

#5 ronin

ronin
  • Modder
  • 2114 posts

Posted 09 December 2005 - 05:38 AM

My code did have 10 and 11, switching the reputationLT and GT didnt work. I can get him to fall if his rep is too high (11) but he wont regain his paladin status when his rep is low enough (10).

hmm

any other ideas Kulyok?

thanks for your help

ronin

#6 seanas

seanas
  • Modder
  • 1906 posts

Posted 09 December 2005 - 05:42 AM

ronin, before you go wasting much more of yr time on this, you might want to check out the threads on G3 and PPG documenting Andyr's long and unsuccessful attempts to make a blackguard.

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 ronin

ronin
  • Modder
  • 2114 posts

Posted 09 December 2005 - 05:46 AM

OK...thank you.

ronin

#8 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 09 December 2005 - 06:01 AM

Andy was in trouble, because he tried an Evil-aligned paladin, which is impossible. If you want a good-aligned paladin, but want him to fall-regain his abilities because of reputation, I think it is possible to do this, otherwise Sim would not consider Atonement in Virtue.

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.


#9 ronin

ronin
  • Modder
  • 2114 posts

Posted 09 December 2005 - 06:11 AM

I can stop him from falling with too low a rep (he starts out LE with rep 8 and dont fall) and if the rep gets too high (11) I can make him fall. I only need to be able to make him regain his paladin status when his rep hits a certain point (10).

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 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 09 December 2005 - 06:14 AM

No... with LE the game automatically will Fall him, since his alignment is evil. :( Sorry, bad luck.

#11 ronin

ronin
  • Modder
  • 2114 posts

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.