Author Topic: Bots/Bot events and Events  (Read 1187 times)

Things I need help with for an RPG I'm making
- Wielding a weapon and attack when you are a certain distance
- Health differences (I know it might work with changing height but any way other than that)

What are some ways to do EXP and $? I know one way but I need some sources other than me.

For your money and exp it would be best to make a mod, unless you want people to press a button(brick) everytime they want to level up.

For your money and exp it would be best to make a mod, unless you want people to press a button(brick) everytime they want to level up.
I would do it but I have no knowledge of making Mods and I tried to learn how to and it hurt my brain in the process.

- Health differences (I know it might work with changing height but any way other than that)
Make a playertype with ridiculous health, then use sethealth.

Make a playertype with ridiculous health, then use sethealth.
Don't know how to make a Playertype.

There are two ways with health:
Custom Health through VCE
Code: [Select]
0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
(Adding armor is basically checking the player's armor and adding damage depending on what he/she wears.)
or
Health Modifications found on RTB Playertypes.
(If you want a max health of 150, go wild.)

You can make the bots or resources also check the experience the character has and if it succeeds the limit, it should remove all the EXP/increase requirement and give it another level.

Randomdice works well with drops too.

There are two ways with health:
Custom Health through VCE
Code: [Select]
0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
(Adding armor is basically checking the player's armor and adding damage depending on what he/she wears.)
or
Health Modifications found on RTB Playertypes.
(If you want a max health of 150, go wild.)

You can make the bots or resources also check the experience the character has and if it succeeds the limit, it should remove all the EXP/increase requirement and give it another level.

Randomdice works well with drops too.
^

There are two ways with health:
Custom Health through VCE
Code: [Select]
0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
(Adding armor is basically checking the player's armor and adding damage depending on what he/she wears.)
or
Health Modifications found on RTB Playertypes.
(If you want a max health of 150, go wild.)

You can make the bots or resources also check the experience the character has and if it succeeds the limit, it should remove all the EXP/increase requirement and give it another level.

Randomdice works well with drops too.
Thanks this will help.
I now ran into a problem with saving and loading I tried doing a basic Kill Bot, get Gold. then save, then kill yourself and load. It wont let me load the Variable back. Also, I did the same test but Instead of Killing myself, I Clear the events and didn't load back once I saved. Any reasons why this wont work?

Thanks this will help.
I now ran into a problem with saving and loading I tried doing a basic Kill Bot, get Gold. then save, then kill yourself and load. It wont let me load the Variable back. Also, I did the same test but Instead of Killing myself, I Clear the events and didn't load back once I saved. Any reasons why this wont work?
There is a problem with VCE that makes the variables unresponsive when you first load a build.
You can fix this by reloading the build.

Also make sure it's saving and loading to the correct area such as player and client.

There is a problem with VCE that makes the variables unresponsive when you first load a build.
You can fix this by reloading the build. It wasn't working when I first Built it

Also make sure it's saving and loading to the correct area such as player and client. I'm 99.99999% sure I did this correct


Since saving and loading is with variables and it wasn't working, you should try restarting singleplayer/whatever or try redownloading VCE through Return to Blockland.

Since saving and loading is with variables and it wasn't working, you should try restarting singleplayer/whatever or try redownloading VCE through Return to Blockland.
OK I'll Try that


Let me clarify that a little better.
Saving/Loading events are part of VCE and your VCE appears to be not working.

When you spawn, event a little thing that gives you a variable and make it display the variable to see if it's working.
If not, just try a redownload or restart singleplayer.
It's an error in VCE that does this.

Im making an RPG with exp and health, I prefer to use VAR and VCE