collapse

* Notice

Important notice (31 July): We have recently recovered from a nearly two day downtime due to an attack. No data was lost or stolen but the server has been reinstalled as a precaution. Please let us know if you encounter any issues. We apologise for the unacceptable inconvenience. Please read here for more information.

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Need assist with Dialog line code... dlg file  (Read 1291 times)

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Need assist with Dialog line code... dlg file
« on: August 03, 2016, 11:45:22 pm »
Trying to build a dialog for Damsel to take Hannh's book, but something is not working correctly. Here is my first draft, dummy line and an almost identical line from Beckett's dialog. My line only works if I remove the G.Damsel_Paul == 1 . Even though I check in the console after telling her about Paul, it shows G.Damsel_Paul = 1 .
Code: [Select]
{ pc.HasItem("item_g_vampyr_apocrypha") and G.Patch_Plus == 1 }{ pc.MoneyAdd(200); pc.RemoveItem("item_g_vampyr_apocrypha") }
Code: [Select]
{ pc.HasItem("item_g_hannahs_appt_book") and G.Damsel_Paul == 1 }{ pc.MoneyAdd(200); pc.RemoveItem("item_g_hannahs_appt_book") }

Thanks for any suggestions.
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1782
  • Reputation: +392/-13
Re: Need assist with Dialog line code... dlg file
« Reply #1 on: August 04, 2016, 08:31:34 am »
I can't see any problems in this line, but to really help you I need the context. The whole textblock with your new line and where G.Damsel_Paul is set.
Co Author of Camarilla Edition Mod

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need assist with Dialog line code... dlg file
« Reply #2 on: August 04, 2016, 10:15:51 am »
Here's the whole first draft dummy line, until I find a reply and edit up. It's intended to be part of Damsel's rotation from line 231. The only way for me to get it working atm is to remove " and G.Damsel_Paul == 1" It should fire up after reporting Paul Dead, line 245.
Code: [Select]
257 }{ No Look, Love Killed Paul... }{ No Look, Love Killed Paul... }{ 231 }{ pc.HasItem("item_g_hannahs_appt_book") and G.Damsel_Paul == 1 }{ pc.MoneyAdd(200); pc.RemoveItem("item_g_hannahs_appt_book") }{ }{ }{ }{ }{ }{ }{ Love Killed the Walrus! }


Thanks
« Last Edit: August 04, 2016, 11:04:35 am by Acleacius »
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Malkav

  • Antediluvian
  • *****
  • Posts: 1782
  • Reputation: +392/-13
Re: Need assist with Dialog line code... dlg file
« Reply #3 on: August 04, 2016, 08:01:40 pm »
Problem is that G.Damsel_Paul is set in Damsel's line to which your line is a reply. The dialog parser doesn't recognize variable changes in the npc line for player replies in the same dialog block.
So in order to make it work you have to find all instances of the player telling Damsel that Paul is dead and move the G.Damsel_Paul = 1 command from line 251 to all these places.
Co Author of Camarilla Edition Mod

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need assist with Dialog line code... dlg file
« Reply #4 on: August 04, 2016, 08:12:02 pm »
Thanks very much, Malkav!   :vampwink:

Think I looked for multiple instances, but could have missed one/some. Think it would be solved once I find a proper reply from Damsel, which should move me to another block (if I understand you correctly).
Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

Offline Acleacius

  • Antediluvian
  • *****
  • Posts: 927
  • Reputation: +447/-3
Re: Need assist with Dialog line code... dlg file
« Reply #5 on: August 05, 2016, 11:02:33 am »
Getting closer, now just need to stop line 702 from appearing while using 701 to turn in the book.

Code: [Select]
257 }{ No Look, Love Killed Paul... }{ No Look, Love Killed Paul... }{ 701 }{ pc.HasItem("item_g_hannahs_appt_book") }{ pc.MoneyAdd(200); pc.RemoveItem("item_g_hannahs_appt_book"); G.Damsel_Paul == 1 }{ }{ }{ }{ }{ }{ }{ Love Killed the Walrus! }
Code: [Select]
703 }{ Thanks, see ya Damsel.  }{ Thanks, see ya Damsel. }{ 0 }{ }{ }{ }{ }{ }{ }{ }{ }{ Coo coo ca choo! }

Trust me, most of the names I have been called you can't translate in any language...they're not even real words as much as a succession of violent images.

 

SimplePortal 2.3.7 © 2008-2020, SimplePortal