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
Swing swinging at record of the fight + source
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #17
RE: Swing swinging at record of the fight + source
I might not get the whole concept here, the thread is full of large posts Tongue, so I might say something already wroten:

local.AnimDelay sets a delay telling sphere how much time wait to start the animation, setting it to 1 (not 10) will emulate the old behaviour (it was doing SetTimeout(), hence firing in the next tick, NOT at the next second).

You can add different ARGN1 values for new and old enemies by using something like this:
Code:
ON=@CombatAdd //called when a combat starts (memories are added, and so) with someone.
ctag.firstStrike<src>=1 //ctag will make it faster, since people don't seem to use it a lot, it's being cleared automatically and tag count seems to be insane on most servers.

ON=@CombatDel // called when memories of a target expire out ( timer = AttackerTimeout (sphere.ini) ).
ctag.firstStrike<src> // removing this ctag.

ON=@HitTry
if (<ctag0.firstStrike<src>>) // first time we are going to thit this target
ctag.firstStrike<src> // should this be cleared after trying to hit?? we may fail, run away, etc ... you might want to have this removed on a successfull @Hit or @HitMiss.
ARGN1 += 10 // add this +1second to the delay
endif

About strike back you can try something like this:
Code:
ON=@Attack
src.attacker.add <uid>
So the target will have you as enemy and try to fight you out (if he doesn't have more enemies with higher priority, etc already).
02-23-2016 05:56 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like XuN's post
Post Reply 


Messages In This Thread
RE: Swing swinging at record of the fight + source - XuN - 02-23-2016 05:56 AM

Forum Jump:


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