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-nmm6 (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-nmm6 (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-nmm6 (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
Ammo system help.
Author Message
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #1
Ammo system help.
Is there any direct way to trigger when u got no ammo? // I mean using archery.
I want to insert a little code there without need to check if the char got ammo.
I can check the backapack on each shot but its not fine for me.

I think its hardcoded but would be nice.
(This post was last modified: 01-15-2016 08:15 AM by rastrero.)
01-15-2016 05:55 AM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #2
RE: Ammo system help.
A couple of lines executed at each shot is not a drama, i do something like this:
Code:
ON=@HitTry
IF (<ACTION> == skill_archery)
IF (<RESTEST 1 i_arrow>)
  sysmessage lol you can't
  trigger @HitFailNoAmmo
  return 1
ENDIF
ENDIF
01-16-2016 11:31 PM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #3
RE: Ammo system help.
@HitFailNoAmmo

This trigger is yours? or sphere? where its is?


My combat system is custom, and is long just a couple of lines xDD
If sphere do it by itself its better for me to try take advantage of it.

ty for the answer
01-16-2016 11:56 PM
Find all posts by this user Like Post Quote this message in a reply
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #4
RE: Ammo system help.
Custom trigger, you can fire custom triggers with the TRIGGER keyword. As far as i know, sphere does not have a trigger for such a thing.
01-17-2016 12:21 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes karma's post
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #5
RE: Ammo system help.
Ok ty karma 4 ur help Big Grin
01-17-2016 01:19 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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