Author Topic: Turn a PC into what?  (Read 318 times)

Legacy_FiresTemptress

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Turn a PC into what?
« on: September 10, 2010, 10:00:23 pm »


               Using a tag based system how would I go about using a placeable that will allow a PC to turn into a dolphin for a brief amount of time?

example: PC drinks out of a "hole water basin" and presto, seconds later they are a dolphin.  I would like a time limit of about 30 seconds on it tho before they revert back to their original self.

Can anyone help me with this?
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Turn a PC into what?
« Reply #1 on: September 10, 2010, 11:17:19 pm »


               Problem is there are no dolphin appearances. Not even in the CEP. However, this script will do what you want but change the PC into a mako shark.

Make sure your basin in useable then put this in the its OnUsed event:

void main()
{
object oPC = GetLastUsedBy();
int nApp = GetAppearanceType(oPC);

//Make the PC "take a drink"
AssignCommand(oPC, PlayAnimation(ANIMATION_FIREFORGET_DRINK));

//Set Appearance to mako shark using the line number from appearance.2da
DelayCommand(3.0, SetCreatureAppearanceType(oPC, 447));

//After 30 seconds (+3 for above delay) change PC back
DelayCommand(33.0, SetCreatureAppearanceType(oPC, nApp));
}

Add visual effects to taste.

-420
               
               

               


                     Modifié par 420, 10 septembre 2010 - 10:19 .
                     
                  


            

Legacy_FiresTemptress

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Turn a PC into what?
« Reply #2 on: September 11, 2010, 03:39:01 am »


               :: pounces and hugs the heck out of you:: THANK YOU! It is exactly what I have been looking for! It works surperbly too!