SphereCommunity
a pause in script without a timer - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: a pause in script without a timer (/Thread-a-pause-in-script-without-a-timer)



a pause in script without a timer - john2260 - 07-20-2013 11:09 AM

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


RE: a pause in script without a timer - Feeh - 07-20-2013 11:26 AM

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.