Author Topic: MODULE: OptionChosen  (Read 600 times)  Share 

cat

  • Mittens Vassal
  • AGS Baker
  • cat worked on a game that was nominated for an AGS Award!
MODULE: OptionChosen
« on: 01 Jul 2012, 10:49 »
Use this module if you write a custom dialog rendering, use HasOptionBeenChosen and want to set or reset the value for this.
   
You can use this directly in dialog:
   
Code: Adventure Game Studio
  1.    @1
  2.    ego: I don't want to have this option marked as read.
  3.   this.SetNotChosen(1);
  4.    return
  5.  
   
   In 'dialog_options_render' you can check for the saved value:
Code: Adventure Game Studio
  1. if (info.DialogToRender.IsChosen(i)) ds.DrawingColor = 5;

I based this module on the code from GuyAwesome which was posted here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=37949.msg498961#msg498961

Download here: http://cat.agser.me/modules/OptionChosen.zip
     

Ponch

  • AGS Baker
  • I live my life one stop light at a time.
  • Ponch worked on a game that was nominated for an AGS Award!
Re: MODULE: OptionChosen
« Reply #1 on: 14 Jul 2012, 15:32 »
Downloaded this last night. For dialog heavy games like mine, this will come in very handy. Thanks, cat.  :)
Ready For Summer!