Jump to content
  • 0
BuLaLaKaW

Additional Character Variables

Question

Maybe developers can add additional variables like Race and Size in addition to the existing player variables ?
 

 

https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt

 

Some variables are special, that is, they are already defined for you by
the scripting engine. You can see the full list somewhere in
'db/const.txt', which is a file you should read, since it also allows you
to replace lots of numbered arguments for many commands with easier to
read text. The special variables most commonly used are all permanent
character-based variables:
 
Zeny - Amount of Zeny.
Hp - Current amount of hit points.
MaxHp - Maximum amount of hit points.
Sp - Current spell points.
MaxSp - Maximum amount of spell points.
StatusPoint - Amount of status points remaining.
SkillPoint - Amount of skill points remaining.
BaseLevel - Character's base level.
JobLevel - Character's job level.
BaseExp - Amount of base experience points.
JobExp - Amount of job experience points.
NextBaseExp - Amount of base experience points needed to reach next level.
NextJobExp - Amount of job experience points needed to reach next level.
Weight - Amount of weight the character currently carries.
MaxWeight - Maximum weight the character can carry.
Sex - 0 if female, 1 if male.
Class - Character's job.
Upper - 0 if the character is normal class, 1 if advanced, 2 if baby.
BaseClass - The character's 1-1 'normal' job, regardless of Upper value.
For example, this will return Job_Acolyte for Acolyte,
Priest/Monk, High Priest/Champion, and Arch Bishop/Sura.
If the character has not reached a 1-1 class, it will return
Job_Novice.
BaseJob - The character's 'normal' job, regardless of Upper value.
For example, this will return Job_Acolyte for Acolyte,
Baby Acolyte, and High Acolyte.
Karma - The character's karma. Karma system is not fully functional,
but this doesn't mean this doesn't work at all. Not tested.
Manner - The character's manner rating. Becomes negative if the
player utters words forbidden through the use of
'manner.txt' client-side file.
 
Race  - The character's normal race is Demi-Human and can be changed
             into other race, see db/const.txt for more info under rc_
 
Size -    The character's normal size is 1 or Medium and can be changed to
            0=Small  1=Medium  2=Large
 
While these behave as variables, do not always expect to just set them -
it is not certain whether this will work for all of them. Whenever there
is a command or a function to set something, it's usually preferable to
use that instead. The notable exception is Zeny, which you can and often
will address directly - setting it will make the character own this number
of Zeny. If you try to set Zeny to a negative number, the script will be
terminated with an error.

 

 

 

Thanks

Edited by BuLaLaKaW

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

I disagree since those are mainly changed/used in weapons/armors/cards, so having them separated would make weapons/armors/cards that modify them, useless. Btw that is just my opinion.

Share this post


Link to post
Share on other sites
  • 0

I disagree since those are mainly changed/used in weapons/armors/cards, so having them separated would make weapons/armors/cards that modify them, useless. Btw that is just my opinion.

 

I see that there are negative things you see in these request since we are not used to it for the longest time. Ever since I join and use emulators from eA, to 3Ceam, then to rA and now Hercules. And I only see the same stuff other than being optimized and more friendly which is how and what I see in hercules. This may not be certain but this is an opportunity to make Ragnarok Online more interesting and challenging under the name of hercules. I do hope this will be given a chance, hercules have the right and brilliant devs who can do something on this matter.

 

Or a control can be setup as well for those people who do not want to implement this in their server. Maybe like:

 

// To enable advance variables ( Race and Size ) set value to 1, default is 0// Enabling this will allow you additional control on Race and Size variables// providing your players a more challenging environment than the usualadv_variables_enabled: 0 
Edited by BuLaLaKaW

Share this post


Link to post
Share on other sites
  • 0

If this isn't seen as a necessary, viable thing to be implemented into Hercules, this can always be made as a plugin for your server.

Share this post


Link to post
Share on other sites
  • 0

If this isn't seen as a necessary, viable thing to be implemented into Hercules, this can always be made as a plugin for your server.

 

I will respect your decision. And I will wait. Please keep me posted.

Share this post


Link to post
Share on other sites
  • 0

Race should be fine, but size, I think it would be little more work, since appearance is changed.

 

I suggest for race and element of a player....

 

This can make possible to have element/race quests, interelement, racial events, and lots more. Item that can change race/element for x amount of time, and this will make player to choose a race that is having advantage of killing other race monsters, etc.

Edited by Dastgir Pojee

Share this post


Link to post
Share on other sites
  • 0

If I recall, those items use bonuses, not variable. Variable would help changing element without any items.

Share this post


Link to post
Share on other sites
  • 0

If I recall, those items use bonuses, not variable. Variable would help changing element without any items.

 

i think you are right. It just that currently players are stuck to demi human race, at least a change will utilize other options and cards in game

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.