Jump to content
  • 0

Meditation system help / Systema de meditaci贸n


tamagochi94

Question

Hello, I would like to implement a system in which the character pressing a key, for example f1, begins to meditate (recover mana x second) according to the character level if possible and an animation is played, could someone help me with that?

---------

hola quisiera implementar un sistema en el que el personaje presionando una tecla por ejemplo f1 comience a meditar (recuperar mana x segundo) segun el nivel del personaje de ser posible y se reproduzca una animacion alguien podr铆a ayudarme con eso?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I'd say wait for the developers here finish the source to 1.0 before changing or getting someone to add stuff source wise as if you try to update after with their source it may not work or will make your source editor have to fix it the bugs that could arise every time if there are complications but its up to you what you want to do.

here is a small rundown on a events you can do with 2 spells聽

You can name the variables anything you want don't have to be what i have

The Variable you need聽

Spoiler

Make a player variable meditation integer
Make a player variable meditation level up integer
make a player variable meditation lvl 1 Boolean
make a player variable meditation lvl 2 Boolean

Two Events to set Meditation on/off

Spoiler

make a 2 comment events, "meditationON" and "meditationOFF"
for meditationON, have it set meditation variable to 1聽
for meditationOff, have it set meditation variable to 0

Two spells to activate meditation

Spoiler

make 2 spells(so you can activate meditation on/off)
"meditationON" 聽event type spell set it to self, set the event to "meditationON"
"meditationOFF" 聽event type spell set it to self, set the event to "meditationOFF"

(either give it to the player in class editor, or have a login event made to give them the spells upon log in)

A hold Player event to hold player in meditation

Spoiler

Make a Meditation Hold event
no spawn condition
Condition Branch - if meditation variable = 1
hold player ( means the player cant move during )
else
release player(means if it ain't 1 releases the player so they can move)
trigger - player variable change - meditation

A event to activate upon leveling聽

Spoiler

make a new event聽
Meditation level up

spawn condition - nothing
condition branch -聽 player variable level 0
set player variable - meditation level up - 2
else

set player variable - meditation level up - add 1

Trigger -聽 on level up

A event based on the leveling, to determine the level of meditation

Spoiler

make a new event聽

Meditation level

spawn condition - nothing

conditional branch - player variable medition lvl up = or greater then 5
set meditation lvl 1 to true
else
nothing
condition branch - player variable medition lvl up = or greater then 10
set meditation lvl 1 to true
set meditation lvl 2 to true
else
nothing

trigger - player variable change - meditation level up

The main Event to heal when you use meditation based on lvl

Spoiler

make a new event
Mediation Heal聽
spawn condition list - meditation variable = 1, meditation lvl 1 set to false meditation lvl 2 set to false
add: wait (1000ms(1sec),
add: play animation聽
Add: restore 5 (mp or hp)聽

make trigger auto (should only run when meditation is active)

make a new page (in the meditation heal event)

spawn condition list - meditation variable = 1, meditation lvl 1 set to true - meditation lvl 2 set to false
add: wait (1000ms(1sec),
add: play animation聽
Add: restore聽 50 (mp or hp)聽

make trigger auto (should only run when meditation is active)

make a newpage (in the meditation heal event)

spawn condition list - meditation variable = 1, meditation lvl 1 set to true - meditation lvl 2 set to true
add: wait (1000ms(1sec),
add: play animation聽
Add: restore 100 (mp or hp)聽

make trigger auto(should only run when meditation is active)

hopefully this works for now till you get what you want done聽

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...