Jump to content

Home

[TSL] Consoles with Holorecords


Omega_Novae

Recommended Posts

I'm trying to make a console that plays holorecords, similar to the ones in Peragus (with the Medical Officer Console, Administration, etc.) However, the script I'm firing at its place in the dialog isn't working correctly. I can't get the holo's dialog to start.

 

void main()
{

 int nHolo=GetGlobalNumber("SluskHolo");
 object oSluskHolo=GetObjectByTag("SluskHolo");

 if (nHolo==1)
   {
     CreateObject(OBJECT_TYPE_CREATURE, "SluskHolo", Location(Vector(22.67195,26.82353,0.00000), 277.78290));
     CreateObject(OBJECT_TYPE_CREATURE, "Dantraka", Location(Vector(23.87955,22.84560,0.00000), 110.02841));
     DelayCommand(0.1, AssignCommand(oSluskHolo, ActionStartConversation(GetPCSpeaker())));
   }
 if (nHolo==2)
   {
     CreateObject(OBJECT_TYPE_CREATURE, "SluskHolo", Location(Vector(22.67195,26.82353,0.00000), 277.78290));
     CreateObject(OBJECT_TYPE_CREATURE, "Therac", Location(Vector(23.87955,22.84560,0.00000), 110.02841));
     DelayCommand(0.1, AssignCommand(oSluskHolo, ActionStartConversation(GetPCSpeaker())));
   }
 if (nHolo==3)
   {
     CreateObject(OBJECT_TYPE_CREATURE, "SluskHolo", Location(Vector(22.67195,26.82353,0.00000), 277.78290));
     CreateObject(OBJECT_TYPE_CREATURE, "DarkJedi", Location(Vector(23.87955,22.84560,0.00000), 110.02841));
     DelayCommand(0.1, AssignCommand(oSluskHolo, ActionStartConversation(GetPCSpeaker())));
   }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...