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
another little question :c
Author Message
Khaos
Master
**

Posts: 595
Likes Given: 166
Likes Received: 83 in 51 posts
Joined: Mar 2012
Reputation: 11



Post: #3
RE: another little question :c
Well, you'd set the f_onchar_create or whatever it is called set the skills to whatever using allskills=<value> on the first login for that character.

As for the skillgain system, this might work? Not tested.
Code:
on=@SkillGain
if (<argn1> == <argn3>) // Is our skill value the same as the max it can gain? If so, no gain is made.
return 1
endif
if (<argn2> < <argn1>) // Did the roll of 1 - 1000 score lower than our current skill?
return 1 // If so, we don't get a gain.
endif
trigger @SkillChange
return 0 // Should this be 1? I am not sure off the top of my head.

on=@SkillChange
argn2=1 // Amount to gain in skill.
argn1=<eval <argn1> + <argn2>> // lets add that to current skill now.
return 0 // Again, should this be 1?? Not sure off the top of my head.

or as Artyk said with the tag. Either way I believe works. I would just rather handle it in after creation is done or whatever and not have to add a tag if possible.
(This post was last modified: 02-18-2016 09:55 AM by Khaos.)
02-18-2016 09:54 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Khaos's post
Post Reply 


Messages In This Thread
another little question :c - jexnico - 02-18-2016, 09:19 AM
RE: another little question :c - Artyk - 02-18-2016, 09:51 AM
RE: another little question :c - jexnico - 02-18-2016, 10:49 AM
RE: another little question :c - Extreme - 02-18-2016, 11:07 AM
RE: another little question :c - jexnico - 02-18-2016, 09:08 PM
RE: another little question :c - Khaos - 02-18-2016 09:54 AM
RE: another little question :c - Artyk - 02-18-2016, 10:03 AM
RE: another little question :c - Khaos - 02-18-2016, 12:06 PM
RE: another little question :c - rastrero - 02-23-2016, 06:07 AM

Forum Jump:


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