1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

Waking up?

Discussion in 'Neverwinter Nights (Classic)' started by Errol, Oct 18, 2002.

  1. Errol Gems: 23/31
    Latest gem: Black Opal


    Joined:
    Oct 23, 2001
    Messages:
    1,547
    Likes Received:
    0
    Gender:
    Male
    [​IMG] Hmmm... I've got a problem with NWN.

    Firtsly, in the module i would like a way to 'Wake up'; just like after resting you sit down then stand up.

    At the start of a module, i want the PC to be lying down, then to get up after 3-5 seconds of the game having started.

    ActionAnimation(ANIMATION_???????),
    and if i recall correctly the way to
    refer to the PC is; oTarget(oPC()).

    Please help, awaiting your replies.
    (even a link will do!)
     
  2. Thorin Gems: 9/31
    Latest gem: Iol


    Joined:
    Jan 3, 2002
    Messages:
    303
    Likes Received:
    0
    to make the person sleep use

    effect eLieDown = EffectSleep();
    effect eSnore = EffectVisualEffect(VFX_IMP_SLEEP);
    effect eSleep = EffectLinkEffects(eLieDown,eSnore);
    ApplyEffectToObject (DURATION_TYPE_TEMPORARY, eSleep,OBJECT_SELF);

    to wake the person up

    AssignCommand(oPC, ClearAllActions());

    or you could try another way to make the PC sleep which is
    ANIMATION_LOOPING_DEAD_FRONT
    which simulates a sleeping character, all you have to do is apply the effect and loop it
     
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.