RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Help with conditional branches

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 85
I solve practical problems.
For taking arms in the name of your breakfast.
Is it possible for me to make a conditional branch that checks the users level, and if it is a certain level do a certain action.

example
if level = 30 then text"your strong"
else "Train some more"

Im sorry this is in Visual basic format, but this is the only way I can explain it

Thanks

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
I'm pretty sure XP conditionals already support that. Just look at the tabs for yourself. It's extremely self explanatory.

*
Rep:
Level 85
I solve practical problems.
For taking arms in the name of your breakfast.
Ahh but i did that already. :)
unless its a different version i get this

first page: switch, variable, selfswitch, timer
second page: actor is: in the party, equipment, name, skill, weapons, armor, state,
third page: enemy, player facing
fourth page: gold, item, weapon, armor, button, script

the only ideas i might have had were variables

*
A Random Custom Title
Rep:
Level 96
wah
Control Variables: Set variable to Actor's Level.
Conditional branch manipulating the variable.

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
If you wanted the player's level to be checked contstantly, you would have to put the variable inside a common event on a parallel process. It's constantly being updated so you can call the value of the variable at anytime in real time and it'll equal your player's level. Or if you want to check the player's level when you check their level, then you can set the value of the variable at the very beginning of the event commands including the conditional branches that check that value.

I would assume you're trying to check the level as soon as it happens to have the text occur. If so, you'll NEED to set up the events like this::
Common Event, Parallel, Switch 00Z: ON

>Variable00X == Actor01 LvL
>If: Variable 00X == 30
>Then: Your Text Event Commands
>         Switch00Z = OFF
>Else: (nothing here)

If you just need to check the player's level whenever you speak to an NPC or something similar then you don't need to use a common event and instead can just do what I explained just above minus the common event mumbojumbo.

*
Rep:
Level 85
I solve practical problems.
For taking arms in the name of your breakfast.
Thanks for the info i knew it had something to do with the variables