thalesgal

Veteran
Veteran
Joined
Dec 23, 2016
Messages
196
Reaction score
46
First Language
Portuguese
Primarily Uses
RMMV
Hello!


I would like some help to do a level up thing.


I'm doing my RPG using action system. So when the player kill the enemie it increases it's EXP.


The mensage that are available to use is too ordinary.


I'm thinking in show an animation when the player level up. There is somenthing easy? Like a condicional branch?


   "If player level up"


                - Show animation "blabla" on player


                - Recover HP and SP.


Thank you very much in advance, and sorry for english mistakes.

rag2.png
 
Last edited by a moderator:

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
680
Reaction score
579
First Language
German
Primarily Uses
RMMV
Could you give links to the plugins you're using for your action system?
 

thalesgal

Veteran
Veteran
Joined
Dec 23, 2016
Messages
196
Reaction score
46
First Language
Portuguese
Primarily Uses
RMMV
Hello!


In fact I'm using just events!! Hahaah!! I will show you how I'm doing. It's very nice. And you can do a lot of possibilities.


All the credits go to  Engr. Adiktuzmiko : http://forums.rpgmakerweb.com/index.php?/profile/1742-engr-adiktuzmiko/


He helped me 100% to do this work.


The bad thing is that give a lot of work to do. Because for each enemi event, you have to create 3 different variables. I have made 84 already. Haha...


Attach 1


This shows the attack system. It's a parallel process to say where is the event, where is the player, and where the player is looking at. Then, if you


press ok (Input.isTriggered("ok");), and those information match, you are allow to attack the event. Then you increase the event variable by 1 for each attack.


attach 2


Here I'm showing that, if the event touches you, you will be damage by 40. But, if you attack the event in the back, nothing is going to happen to you. Also, the event has a delay to move, if you move correctly on this delay, you can hit the event from the front too, and you will not get hit. As much is the frequency of movement of the event, harder is to attack without get hit.


attach 3


Then you can create as many pages as you want. The pages will be like the HP of the event. In this case, when the variable gets the number 5, the event will be defeated.


Then, I did a random drop. As you can see, it's 1 to 5. 20% of get any items listed. The item 5, are splited by two again, to make harder to get it.


After you get your item, the variable returns to 0, and the event and the parallel process  are erased.


As I said, you can create a lot of possibilities. For example, I will draw a charset, to show the moviment of the player attacking. Then return to the normal charset. And etc.


I wish I have explained all this correctly hahaha! Sorry for english mistakes!


abs 1.png


abs 2.png


abs 3.png
 
Last edited by a moderator:

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
680
Reaction score
579
First Language
German
Primarily Uses
RMMV
That's really cool! So you're just using an event command to give the player EXP? In that case, I would just do the level up animation with events as well:


- Before you award any EXP, store the player's current level in a variable (I'll call it "Old Level").


- After you award the EXP, store the player's level in a different variable ("New Level").


- In a Conditional Branch, check if New Level > Old Level, and if it is, play the animation / recover HP / whatever you want. You might want to put the contents on the Conditional Branch into a Common Event (no trigger) and call it from the map event - that way, you only have to set up the "Level Up" stuff once.


Let me know if that works for you!
 

thalesgal

Veteran
Veteran
Joined
Dec 23, 2016
Messages
196
Reaction score
46
First Language
Portuguese
Primarily Uses
RMMV
Thank you very much guys!!


@LadyBaskerville it worked! Thank you very much!! But I will use the script above! It run better. Thank you!


@Vito The Boss


Thank you very much!!!! It was better of what I was looking for!! Haha! Thank you!
 

Vito The Boss

Someone better than you, or will become
Veteran
Joined
Nov 1, 2016
Messages
175
Reaction score
64
First Language
Italiano
Primarily Uses
Happy that it worked!
 

Latest Threads

Latest Posts

Latest Profile Posts

New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D
So Facebook fraudulently took money from me. They even went through my PayPal accounts to find a card that had the money on it. Thinking about deleting my Facebook account because this doesn't happen on twitter, not even close.
Today the 2nd part of the RPGMakergame "A Thief's voyage" came out.


Go show DutchPowerCreations some love.
love it when you forget to put a certain thing in the movement route and suddenly a character starts spinning at 10000 rpm
I'm sorry. I have a bad feeling I've been manic the past couple of days. Antidepressants have only been making things worse somehow -- too drowsy to function, followed by insomnia. Why not making me go crazy to boot?

Forum statistics

Threads
116,992
Messages
1,103,652
Members
152,887
Latest member
xWildSlicerx
Top