Author Topic: Bot and Vce event trouble  (Read 682 times)

Okay, so I am going to do my best to explain this.


I am in the process of building an RPG, and I am trying to get the Bots to drop a Gold variable. How I have been eventing this is.. (below)

OnBotKilled>Killer(client)>VCE_modVariable>[Gold] [Add] [50]

When I do this, I gain the gold no problem when I check using <var:cl:Gold> but any other players that kill the bot will not receive the variable, because it goes to me.

I got it working using.. (below)

OnBotKilled>Killer>VCE_modVariable>[Gold] [Add] [50]

And then using the <var:pl:Gold>. But I don't want to use pl (player) because it wont be able to do.. (below)

OnActivate>Client>SaveVariable>Player>[Gold]

And i understand because Killer instead of Killer(Client) is picking it up, but what I don't understand is why am I picking up the Client Variable when another player kills my bot?


tl;dr - Players are not able to get client variables from killing my bots, but I am.



Maybe add a brick that the player can save the Gold var to the client?

[0] OnActivate>Client>ModVar>[Gold] [Add] [<var:pl:Gold>]
[33] OnActivate>Player>ModVar>[Gold] [Set] [0]

Maybe add a brick that the player can save the Gold var to the client?

[0] OnActivate>Client>ModVar>[Gold] [Add] [<var:pl:Gold>]
[33] OnActivate>Player>ModVar>[Gold] [Set] [0]

I think I love you.. This will add a lot more eventing for me, but this is genius and will work as a temporary until I find a more solid way of doing so.

Oh, and thank you! <3



going to keep this open though for more suggestions or help