Author Topic: Scripting Increase or Decrease Reputation  (Read 2983 times)

Offline Bill Bisco

  • Planewalker
  • *****
  • Posts: 30
Scripting Increase or Decrease Reputation
« on: August 20, 2015, 09:57:23 PM »
I apologize.  I've searched but cannot find this.  How would you increase or decrease party reputation in code?

Code: [Select]
IF ~~ THEN DO ~   () ~ EXIT   ???
Thanks,

Bill

Offline cmorgan

  • Planewalker
  • *****
  • Posts: 1424
  • Gender: Male
  • Searcher of Bugs
Re: Scripting Increase or Decrease Reputation
« Reply #1 on: August 20, 2015, 11:05:58 PM »
IESDP is still up on the GemRB mirror, and has all of these kinds of things; http://gemrb.org/iesdp/scripting/actions/bg2actions.htm

For BG2,

Quote
163 ReputationInc(I:Reputation*)
This action alters the reputation by the specified value (which can be either negative or positive). The example script is from baldur.bcs.

  IF
    InParty("Viconia")
    Global("ViconiaJoinedParty","GLOBAL",0)
  THEN
    RESPONSE #100
      ReputationInc(-2)
      SetGlobal("ViconiaJoinedParty","GLOBAL",1)
  END
 

in BG1NPC code ,

Code: [Select]
IF ~~ THEN X#T1MB13.1
SAY @124
++ @116 + X#Troubador1NoCoin
+ ~PartyGoldGT(299)~ + @117 DO ~TakePartyGold(300) DestroyGold(300) ReputationInc(-1)~ + X#Troubador1Final
END
subtracts 1


Offline Bill Bisco

  • Planewalker
  • *****
  • Posts: 30
Re: Scripting Increase or Decrease Reputation
« Reply #2 on: August 21, 2015, 07:55:39 PM »
Thank you kind sir.  I have bookmarked that link; I didn't have it before.  Thanks

Offline Gwendolyne_FP

  • Planewalker
  • *****
  • Posts: 66
Re: Scripting Increase or Decrease Reputation
« Reply #3 on: August 24, 2015, 12:51:58 AM »
The link is down  >:(

Quote
Error 503 Service Unavailable

Service Unavailable
Guru Meditation:

XID: 1760709929

Varnish cache server

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: