The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a pause in script without a timer
Author Message
john2260
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jul 2013
Reputation: 0



Post: #1
a pause in script without a timer
is there a way to create a pause inside a script without using a timer.. for example in a speech file..

on=hello
(pause 2 seconds) so it seams as though the npc is thinking then responding
say hello


another example would be

run n
pause 1 second
run n
pause 1 second
so it looks more normal when you make an npc run somewhere
07-20-2013 11:09 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #2
RE: a pause in script without a timer
Hope it helpsSmile
Taken from revisions

revisions Wrote:- Sync (Vjaka): character function TIMERF N,FuncName to cause a timed execution of a
function FuncName in N secs. Specifying N as -1 will clear all TIMERF list.
These functions are not saved, so do not store hours in the list, the purpose
of this is to decrease overhead due to timered memory items opeations

18-06-2006, V (TYVM SL)
- Modified: TimerF is now global and works on any object. It will take optional
arguments to the function call. Entire list is now saved and loaded upon startup.
It no longer uses -1 to erase the TimerF list. Takes a maximum of 1024 characters.
syntax: timerf n, function args

16-12-2006, Furio
- Added: argument CLEAR to TIMERF. Now using x.TIMER CLEAR will delete all the timerf running on x.

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 07-20-2013 11:34 AM by Feeh.)
07-20-2013 11:26 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)