SphereCommunity
Exp System - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Exp System (/Thread-Exp-System)



Exp System - Arcer - 10-04-2014 07:04 AM

Hi all in spherewiki there is:
"If activated in sphere.ini you may loose 10 percent of your total experience if you die."



but where to modify 10% in sphere.ini?


my sphere.ini exp section is:

Code:
///////////////////////////////////////////////////////////////
//////// Experience and Level system
///////////////////////////////////////////////////////////////

// Enable experience system
ExperienceSystem=1

// Experience system settings:
//  0001    gain experience in combat
//  0002    gain experience in crafts
//  0004    allow experience to go down
//  0008    limit experience decrease by a range witheen a current level
//  0010    auto-init EXP/LEVEL for NPCs if not set in @Create
ExperienceMode=0001|0004

// If combat experience gain is allowed, use these percents for gaining exp in
// Player versus Monster and Player versus Player combats. Value 0 disables gain.
ExperienceKoefPVM=100
//ExperienceKoefPVP=100

// Enable levels system (as a part of experience system)
//LevelSystem=0

// Level system settings:
//  linear = 0  (each NextLevelAt exp will give a level up)
//  double = 1  (you need (NextLevelAt * (level+1)) to get a level up)
//LevelMode=1

// Amount of experience to raise to the next level
//LevelNextAt=0

whit last build


RE: Exp System - Skul - 10-04-2014 10:10 AM

Good question, it looks like there is none. Maybe one of the developers can give a better answer.


RE: Exp System - Arcer - 10-04-2014 08:35 PM

heeeeeeeeeEEEeEeeEEeeeEElp Big Grin


RE: Exp System - MrX - 10-04-2014 09:22 PM

// 0008 limit experience decrease by a range witheen a current level
maybe'?


RE: Exp System - Arcer - 10-05-2014 01:17 AM

(10-04-2014 09:22 PM)MrX Wrote:  // 0008 limit experience decrease by a range witheen a current level
maybe'?

and where to set the amount of loss?


RE: Exp System - Feeh - 10-05-2014 06:42 AM

http://wiki.sphere.torfo.org/index.php/@ExpChange Wrote:Arguments

The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
Argument In/Out Description
ARGN1 IO The amount of experience being added (can be negative).
ARGN2 IO If non-zero, a message will be displayed to the client to inform them of the change.



RE: Exp System - Skul - 10-05-2014 10:36 AM

Well with that information you can probably work in a work-around script, example:
Code:
[events e_exp]
on=@death
tag.experiencelossatdeathpercent=10 //10% loss

on=@expchange
if (<tag0.experiencelossatdeathpercent>)
  argn1=-<eval <eval <exp> *<tag0.experiencelossatdeathpercent>> /100>
  tag.experiencelossatdeathpercent=
endif



Exp System - Arcer - 10-05-2014 06:15 PM

Gooood thank you!