Author Topic: Variable Replacers not working?  (Read 839 times)

So, I'm trying to make a game where bots have a certain amount of health, and that health is reduced every time they are hit by the custom value <var:pl:weDamage> that comes with Event_VariableReplacers (By Boom I think), but no matter what I do I can't get this value to work.

Whenever I try to use it or print it VCE thinks of it as a new variable that is set to nothing. Any idea what I should do? I've tried re-downloading and re-naming everything in the file, still doesn't work.

It seems to work fine for me, try testing it out by just using
Quote
onActivate -> client -> centerPrint [<var:pl:weDamage>]
and then starting a minigame with no painting allowed and pressing 'e' on the brick with a weapon out. If it displays correctly then it could mean that it does not work with whatever events you are using to hurt the bot.


I also want to know why you need this, as weDamage is just the actual damage of the gun you're holding, so you could just shoot the bot and it would have the same effect as using these events.

would onProjectileHit > Client > chatMessage [<var:pl:weDamage>] work just as well? I need it to make bots have health greater than 500 (I have add-on that will give up to 500), and so that I can have a variable that will do bonus damage to bots. the events go something like this:
On a bot brick
onProjectileHit > self > VCEmodVariable [hits] [subtract] [<var:pl:power>] #power = variable that increases damage (upgradable elsewhere)
onProjectileHit > self > VCEmodVariable [hits] [subtract] [<var:pl:weDamage>]
onProjectileHit > self > VCEifVariable [hits] [<=] [1000]
onVariableTrue > self > VCEmodVariable [hits] [set]

onVariableTrue > bot > Kill

This is for a VCE RPG, mainly going to be used for bosses(Help wanted if anyone is willing ;D)

onProjectileHit is called if you shoot the brick, not the bot. You'll have to find an event that is called when you hoot a bot (I don't know if there is one)

onBotDamaged in the old bot events worked fine, but idk if those events break the new bots or not.

onBotDamaged in the old bot events worked fine, but idk if those events break the new bots or not.


The answer is sort of. I have both new and old bot events, and some work, some don't

onProjectileHit is called if you shoot the brick, not the bot. You'll have to find an event that is called when you hoot a bot (I don't know if there is one)

I have an event (onBotDamaged)