Blockland Forums > Help
Bots/Bot events and Events
Kobewarrior:
There are two ways with health:
Custom Health through VCE
--- Code: ---0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
--- End code ---
(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.
CJwarrior:
--- Quote from: Kobewarrior on November 03, 2011, 01:13:35 AM ---There are two ways with health:
Custom Health through VCE
--- Code: ---0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
--- End code ---
(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.
--- End quote ---
^
Transformer:
--- Quote from: Kobewarrior on November 03, 2011, 01:13:35 AM ---There are two ways with health:
Custom Health through VCE
--- Code: ---0 OnBotAttack -> Victim(client/player) -> modVariable -> Health SUBTRACT Y
1 OnBotAttack -> Victim(client/player) -> ifVariable -> X (modifyhere) Z [2 2]
2 OnVariableTrue -> Player -> Kill
--- End code ---
(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.
--- End quote ---
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?
Kobewarrior:
--- Quote from: Transformer on November 03, 2011, 05:04:14 PM ---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?
--- End quote ---
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.
Transformer:
--- Quote from: Kobewarrior on November 03, 2011, 06:51:32 PM ---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
--- End quote ---