Jump to content


Dialogue problem


  • Please log in to reply
4 replies to this topic
BainIhrno BainIhrno

Hand of Avadon

  • Moderator
    • Member ID: 3,311
  • 1,312 posts

Posted 31 March 2013 - 11:28 AM #1 Dialogue problem

For some reason, this node doesn't  show up in dialogue. In other words, the question doesn't show up when it should. A previous node did have "nextstate = 13" so I know that isn't the problem. Can someone tell me what's going on?


begintalknode 15;
state = 13;
personality = 1;
nextstate = 14;
condition = 1;
question = "What are your specials?";
text1 = "_Why, my specials include varieties of powder! Wouldn't you like to see?_";
text3 = "_Why, my specials include magic shields! Wouldn't you like to see?_";
text5 = "_Why, my specials include Vahantai weapons! Wouldn't you like to see?_";

code =

clear_strings();

if (get_flag(54,0) == 1) || get_flag(27,0) == 1)
add_string(3);
else if (get_flag(27,2 < 1)
add_string(5);
else
add_string(1);
break;

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 31 March 2013 - 05:45 PM #2 Dialogue problem

Use Alint to check any script for starters. You need to do this on a regular basis. Beware of its errors, it won't accept "fl_shimmers"...
Second, here you have missing parentheses, which I have indicated by square brackets: [ ]
if [(get_flag(54,0) == 1) || [get_flag(27,0) == 1)]

else if (get_flag(27,2] < 1)

Kelandon Kelandon

!!!

  • Global Moderator
    • Member ID: 2,682
  • 9,815 posts

Posted 31 March 2013 - 05:56 PM #3 Dialogue problem

I hope BoA is giving you a script error when you try to call that state, or else something funny is going on. Ishad Nha is right about the missing parentheses, which should make BoA give you an error.
VCH: I believe we settled this way back when: Kelandon was the most attractive.
SoT: You'd be happy, too, if you were such a clever spider.
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!

BainIhrno BainIhrno

Hand of Avadon

  • Moderator
    • Member ID: 3,311
  • 1,312 posts

Posted 31 March 2013 - 07:48 PM #4 Dialogue problem

I figured it out - I apparently had two beginstate 15's. Thanks anyway.

Ishad Nha Ishad Nha

Hand of Avadon

  • Member
    • Member ID: 4,773
  • 2,366 posts

Posted 31 March 2013 - 09:52 PM #5 Dialogue problem

An article on Alint (and its errors) should be made "sticky" in this forum.
Presumably Alint would have spotted this error immediately.
If you use Alint it will report Invalid State for any state over 100. Now there are a lot of reserved special states in the interval 100 thru 115, but anything higher than that can be used.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users