Author Topic: Examine Window pops up .... BLANK ??  (Read 647 times)

Legacy_Grieyls

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +0/-0
Examine Window pops up .... BLANK ??
« Reply #15 on: June 16, 2011, 04:10:21 am »


               Thank you very much Greyfort, the work around works wonderfully.
'Image 
You know I remember playing a module a while back that had this examine feature. Wish I could remember what that module was though so I could look it up. Still perhaps the same thing that you have done there Greyfort was done in that Mod. Well anyway, thank you very much for your help regardless. You have special mention in the script now.
'Image

Just because, here's the script... I cleaned it up a bit, getting rid of all the redundent coding for anybody else who might be interested.

void main()
{
    object oTome = OBJECT_SELF;
    object oPC = GetLastUsedBy();
    object oBook = CreateItemOnObject("le_item046", oPC);
    string sBookDis = GetDescription(oBook, TRUE, FALSE);

     //Add description of oBook to oTome.
    SetDescription(oTome, sBookDis);

     //Floating Text above oPC
    FloatingTextStringOnCreature
    ("You blow dust off the cover as you pick up the journal.", oPC, TRUE);

     // Examine oTome
    AssignCommand(oPC, ClearAllActions(TRUE));
    AssignCommand(oPC, DelayCommand(1.0, ActionExamine(oTome)));

     // Destroy oTome
    DelayCommand(2.0, DestroyObject(OBJECT_SELF, 0.0));
}


Once again, thank you very kindly 'Image
               
               

               
            

Legacy_Greyfort

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
Examine Window pops up .... BLANK ??
« Reply #16 on: June 16, 2011, 06:06:24 am »


               anytime, forgive my messy scripting i tend to try as many functions in various ways to show what can an can't be done.  And don't always get them cleaned before i give them to others.  I'm overjoyed it works.  That is the strangest thing I have ever seen, only seems to examine and show book if invy open and invy tab open to ware book is.
               
               

               
            

Legacy_Grieyls

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +0/-0
Examine Window pops up .... BLANK ??
« Reply #17 on: June 16, 2011, 10:12:17 pm »


               Yeah, it's kind of wierd that it does that. No worries about the messy code, only reason I cleaned it out is because it helps me understand the workings better, that and I'm a tidy a bug.
'Image