Menu

Startnpctimer

Brynner

Syntax

Description

This script command works almost exactly like [Initnpctimer], however
calling this method does not reset the timer for the NPC. When called, it will
resume the timer if it has been stopped using [Stopnpctimer], and it will
not reset the NPC timer tick to 0.

Parameters

See initnpctimer#Parameters.

Examples

  • Start or stop an NPC timer using menus.

    Switch
    {
    [Case] 1:
    startnpctimer;
    [End];

    case 2:
         stopnpctimer;
         end;
    

    }

    [OnTimer]60000:
    [Announce] "This will only ever be called once.", bc_all|bc_npc;
    end;

[Category:Script Command]


Related

Wiki: Announce
Wiki: Case
Wiki: End
Wiki: Initnpctimer
Wiki: OnTimer
Wiki: Startnpctimer
Wiki: Stopnpctimer
Wiki: Timers (Scripting)

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.