Author Topic: Script  (Read 6057 times)

Ser Red Ronnet Connington

  • Guest
Script
« on: April 29, 2006, 03:23:17 PM »
void main()
{

object oPC = GetLastUsedBy();

if (!GetIsPC(oPC)) return;

if (GetItemPossessedBy(oPC, "electricchair") == TRUE );

   {
   SetCutsceneMode(oPC, TRUE);

   AssignCommand(oPC, ActionSit(GetObjectByTag("chairofdeath")));

   DelayCommand(12.0, SetCutsceneMode(oPC, FALSE));

   }
}


Cannot get it to compile... its supposed to aply the functions

 SetCutsceneMode(oPC, TRUE);

   AssignCommand(oPC, ActionSit(GetObjectByTag("chairofdeath")));

   DelayCommand(12.0, SetCutsceneMode(oPC, FALSE));

to the player in possesion of the item with tag electricchair

But it wont compile and using object self in place of true performs those functions on the Pc who initiates the script and not on the Pc with the item of tag electricchair


Any help would be appreciated

 Ser Red

Offline Mo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3051
    • MSN Messenger - cochy@msn.com
    • View Profile
    • http://lucidmagic.net
    • Email
Script
« Reply #1 on: April 29, 2006, 03:58:57 PM »
It's helpful if you state what the compiler error is.

Ser Red Ronnet Connington

  • Guest
Script
« Reply #2 on: April 29, 2006, 04:28:51 PM »
Quote
It's helpful if you state what the compiler error is.
[snapback]28631[/snapback]
ah sorry i posted that in a tired state of depression, after all its failings.. and now ive finaly fixed it myself. Sorry about the bother.