So in my game after you %100 complete the main mode, there is a debug level. There is an NPC in it that can set a certain character's level to whatever number the player puts in. I want to know how to do this with the input number command
Need help with creating a way to set a character level
RPG Maker MV Supportbasically someone just explain to me how to have a certain event happen if the number input is correct
the short way, through a plugin probably, the long way through condition branch.
if: number = 1
character level = 1
end
if: number = 2
character level = 2
end
repeat untill 99 (if this is the max level)
I dont see another way around it though.
if: number = 1
character level = 1
end
if: number = 2
character level = 2
end
repeat untill 99 (if this is the max level)
I dont see another way around it though.
okay thanks
Wait one last thing, is there a way to set the level to a specific number instead of just adding or subtracting?
character level = x (SET the level of character to level x)
character level += x (ADD x levels to character level)
character level -= x (SUBTRACT x levels to character level)
I dont know if its just + or - for character level. need to check that to make sure.
EDIT:
to set a targer character to a level, you need to define a variable first.
control variable x = player level
input number
if: number = 1
control variable x = 1
end
....
if number = 5
control variable x = 5
end
you should test this to see if it works.
there might be an easier way to control the character level
by number input as variable directly, but I dont know how though.
character level += x (ADD x levels to character level)
character level -= x (SUBTRACT x levels to character level)
I dont know if its just + or - for character level. need to check that to make sure.
EDIT:
to set a targer character to a level, you need to define a variable first.
control variable x = player level
input number
if: number = 1
control variable x = 1
end
....
if number = 5
control variable x = 5
end
you should test this to see if it works.
there might be an easier way to control the character level
by number input as variable directly, but I dont know how though.
But there is no checkbox for that here? Do I have to use a script because I have no idea how to do that.
there is another way, you can use this scriptcall to change the level instantly
without variables:
$gameActors.actor(1)._level = 4 (change 4 to what level the input it).
a tiny plugin is helpfull though, but I need to check the code, so you
can do something like this:
$gameActors.actor(1)._level = input; input = the number input by than,
which so it would be way easier 🙂, gimme a second to figure that out for you.
without variables:
$gameActors.actor(1)._level = 4 (change 4 to what level the input it).
a tiny plugin is helpfull though, but I need to check the code, so you
can do something like this:
$gameActors.actor(1)._level = input; input = the number input by than,
which so it would be way easier 🙂, gimme a second to figure that out for you.
Which maker? The tech support forum is for getting the engine to run.
sorry if i used the wrong forum but please dont delete the thread 😀
He won't delete the thread. More like move it where it's supposed to go.
The only thing I can think of, is leveling up level by level, but hey, I don't know much about scripting and such. Maybe someone can help you figure it out.
The only thing I can think of, is leveling up level by level, but hey, I don't know much about scripting and such. Maybe someone can help you figure it out.
Right. We need to know which engine it is as it will also affect the answer. Leaving that out means you may get answers that will not work as they are for the wrong engine.
that dont work directly, because you need something before hand to check that.
I try to figure it out, but it aint that easy though.
I try a couple of ways, but all fail so far 😛 I'm missing something somewhere though.
EDIT:
here is the event to make it work.
40 = actor current level,
39 = number input to save the variable
control variable 39 -= actor current level.
change level actor + variable 39
EDIT 2: (simplified)
Number input: var x, 2 digit
script:
let charlv = $gameActors.actor(1); (change 1 to the actor (1 is leader)
charlv.changeLevel($gameVariables.value(x)) (change x to the number input variable)
I try to figure it out, but it aint that easy though.
I try a couple of ways, but all fail so far 😛 I'm missing something somewhere though.
EDIT:
here is the event to make it work.
40 = actor current level,
39 = number input to save the variable
control variable 39 -= actor current level.
change level actor + variable 39
EDIT 2: (simplified)
Number input: var x, 2 digit
script:
let charlv = $gameActors.actor(1); (change 1 to the actor (1 is leader)
charlv.changeLevel($gameVariables.value(x)) (change x to the number input variable)
I've moved this thread to MV support. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-creating-a-way-to-set-a-character-level.124772/