Aller au contenu

Photo

gc_check_gold


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
andysks

andysks
  • Members
  • 1 654 messages
Hi all. I was testing some convos, and one had a bribe situation in it. I used this script, but since I don't really know how much gold the PC will have by that point, I made multiple lines. Example.

The NPC asks to be bribed. The PC has 5 lines after that, with options to give 500, 1000, 1500, 2000, 2500 gold.
I noticed though, that if I put on the first option gc_check_gold 500, and I speak to the NPC with 5000 in my inventory, all 5 options will show up. Is there any way to make this easy, or everytime I need a similar convo I should add two scripts for checking gold?

One for gc_check_gold 500
One for NOTgc_check_gold 1000

It would be nice if it was working like the local int script, with ! < >.

#2
kamal_

kamal_
  • Members
  • 5 259 messages
you need to put them from highest (2500) to lowest (500), not the other way. The check gold scripts are true (party has >= x gold) or false, and the player having any amount more than 500 will return true for checking for 500.

#3
Lugaid of the Red Stripes

Lugaid of the Red Stripes
  • Members
  • 955 messages
If you're doing it on the PC node, then all the options will show up. One option is to keep all five, but vary the DC (I use a diplomacy skill check with bribes) with the amount of the bribe (large bribes are easier).

The second option is to do some custom scripting. Have your custom gc check the players gold, determine an appropriate bribe, and then set that amount as a local int and as a CustomToken so it can show up in the conversation text. Another custom ga script takes the gold from the player. This can be useful if you want to make sure the bribe is painful to the player, but not too painful. You can set it to take about 25% of the PC's gold, for example, or 50% or 75%, enough that the player will miss it, but not so much as to leave them completely broke.

Using the second conditional like you suggest to bracket the amount will work, too.

#4
ColorsFade

ColorsFade
  • Members
  • 1 271 messages
Andy,

Check Marietta's conversation in my beta. She has some of those checks in the pigs quest. I didn't want all the PC options to show up if the PC doesn't actually have all the necessary money.

#5
andysks

andysks
  • Members
  • 1 654 messages
Thanks for the replies. These together with some look at the scripts for rebuilding the CRK helped me figure out how to do it.