diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-09 13:04:54 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-09 13:04:54 -0300 |
commit | 27a9c1683ae37f8e84414ed29e750aaa583c353f (patch) | |
tree | 3f1d8375ebddd73e226824f78b9ba2a2cfee8fef /npc | |
parent | 85860739747d2a0be40e0503b887320d1686ccd3 (diff) | |
download | serverdata-27a9c1683ae37f8e84414ed29e750aaa583c353f.tar.gz serverdata-27a9c1683ae37f8e84414ed29e750aaa583c353f.tar.bz2 serverdata-27a9c1683ae37f8e84414ed29e750aaa583c353f.tar.xz serverdata-27a9c1683ae37f8e84414ed29e750aaa583c353f.zip |
Tweaks to new function sshake
Diffstat (limited to 'npc')
-rw-r--r-- | npc/018-6-1/main.txt | 2 | ||||
-rw-r--r-- | npc/functions/shake.txt | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/npc/018-6-1/main.txt b/npc/018-6-1/main.txt index b57ad659c..d8699271f 100644 --- a/npc/018-6-1/main.txt +++ b/npc/018-6-1/main.txt @@ -222,7 +222,7 @@ OnMain: mesn l("Wounded Girl"); mesq l("...I guess I can't hide anymore..."); next; - sshake(rand2(3,5)); + sshake(rand2(3,5), false); mesn l("Wounded Girl"); mesq l("Ah!"); next; diff --git a/npc/functions/shake.txt b/npc/functions/shake.txt index e3e5268c6..2c3c58a55 100644 --- a/npc/functions/shake.txt +++ b/npc/functions/shake.txt @@ -4,13 +4,16 @@ // Usage: // set @max_shake then call OnShake -// sshake( {max_shake} ) +// sshake( {max_shake=6,10}, {closedialog=true} ) function script sshake { @max_shake=abs(getarg(0, rand2(6,10))); for (.@s=0; .@s < @max_shake; .@s++) { movecam rand(-20,20), rand(-20,20); sleep2(50); } + restorecam; + if (getarg(1,false)) + closedialog; return; } |