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
differencing races?
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #6
RE: differencing races?
(06-09-2014 05:28 PM)XuN Wrote:  How are you defining the 'races'?

Code:
if (<race>==<src.race>)

[function race]
if (<body>==c_man || <body>==c_woman)
return 1
elseif (<body>==c_elf_male || <body>==c_elf_female)
return 2
elseif (<body>==c_gargoyle_male || <body>==c_gargoyle_female)
return 3
else
return -1
endif

The fact that a function returns (return 1) a value, would it alter the original behavior of a @trigger? which on this case would be @hit ???

@hit
"Return 1 Cancels the combat swing."
(This post was last modified: 06-10-2014 05:28 AM by kn4tseb.)
06-10-2014 05:26 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
differencing races? - kn4tseb - 06-09-2014, 07:27 AM
RE: differencing races? - XuN - 06-09-2014, 05:28 PM
RE: differencing races? - kn4tseb - 06-10-2014 05:26 AM
RE: differencing races? - Alaric - 06-09-2014, 09:21 PM
RE: differencing races? - kn4tseb - 06-10-2014, 02:56 AM
RE: differencing races? - darksun84 - 06-10-2014, 03:14 AM
RE: differencing races? - Extreme - 06-10-2014, 05:42 AM
RE: differencing races? - XuN - 06-10-2014, 06:55 AM
RE: differencing races? - kn4tseb - 06-10-2014, 10:21 AM
RE: differencing races? - Extreme - 06-10-2014, 02:46 PM
RE: differencing races? - XuN - 06-10-2014, 04:13 PM
RE: differencing races? - kn4tseb - 06-11-2014, 07:24 AM
RE: differencing races? - kn4tseb - 06-11-2014, 09:13 AM
RE: differencing races? - Extreme - 06-11-2014, 09:49 AM
RE: differencing races? - kn4tseb - 06-11-2014, 10:58 AM
RE: differencing races? - Extreme - 06-11-2014, 12:06 PM
RE: differencing races? - kn4tseb - 06-11-2014, 12:33 PM
RE: differencing races? - Extreme - 06-11-2014, 12:46 PM
RE: differencing races? - kn4tseb - 06-11-2014, 01:12 PM
RE: differencing races? - Extreme - 06-11-2014, 01:43 PM
RE: differencing races? - kn4tseb - 06-11-2014, 01:45 PM
RE: differencing races? - Extreme - 06-12-2014, 12:41 AM
RE: differencing races? - kn4tseb - 06-12-2014, 05:02 AM
RE: differencing races? - darksun84 - 06-12-2014, 05:32 AM
RE: differencing races? - kn4tseb - 06-12-2014, 07:51 AM
RE: differencing races? - Extreme - 06-12-2014, 05:53 AM
RE: differencing races? - Extreme - 06-12-2014, 08:20 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:26 AM
RE: differencing races? - Extreme - 06-12-2014, 08:33 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:42 AM
RE: differencing races? - Extreme - 06-12-2014, 08:54 AM
RE: differencing races? - kn4tseb - 06-12-2014, 08:59 AM
RE: differencing races? - Extreme - 06-12-2014, 09:38 AM
RE: differencing races? - kn4tseb - 06-12-2014, 09:55 AM
RE: differencing races? - holy - 07-01-2014, 02:35 PM

Forum Jump:


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