Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

New Character's Level

Hey guys.

You know like, when a new character appears, and his/her level is always acording to yours? I'd like to do that, but I don't know how.

I'd liek to do this, because, I don't want to give the new character like, level 20, and if your overtrained, he, like, sucks. I want it to be like... Your main character is level 20, he is level 21, main character is 21, he is 22, etc.

How would I do that? I'm thinking conditional branches, although I'm not sure of what to do there.

Thanks.
 

poccil

Sponsor

You can use this set of event commands to achieve this.  This is untested.
Code:
@>Comment: Get levels
@>Control Variables: [0001: Your Level] = [Actor]'s Level
@>Control Variables: [0002: Other Level] = [OtherActor]'s Level
@>Comment: Find amount to increase level
@>Control Variables: [0001: Your Level] -= Variable [0001: Your Level]
@>Comment: Increase level
@>Change Level: [OtherActor], + Variable [0001: Your Level]
Be sure to set the level of the new character to 1 in the database.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top