| Blockland Forums > Suggestions & Requests |
| Client-Sided Relay |
| (1/2) > >> |
| Goth77:
multiple players can fire a relay off the same brick [THE SCENARIO] I want a user to be able to click a brick to buy a spell. Once they buy the spell they can say it in chat and right click to activate it. I do this using VCE retro check and relays. It works fine, except for when another user also owns the spell and tries to use it. This cancels out the first person who clicked it and instead the spell is only useable to the person who last clicked the brick. So basically I was wondering if its possible to have relays fire on the client/player instead of onto the brick |
| Night Fox:
can you explain the whole thing a bit more? I'm not entirely sure that you even have to use relays |
| Pecon:
Sadly, VCE just isn't a good option for this. You're much better off making a simple weapon and selling them the item. Although, this did give me a neat idea for making a spell system. edit: I'm making a spell system. |
| phflack:
to fix it use print counts instead of relays input -> incrimentprintcount[9] input -> incrimentprintcount[1] onprintcountoverflow -> incrimentprintcount[9] onprintcountoverflow -> incrimentprintcount[1] onprintcountoverflow -> do stuff |
| boodals 2:
I've built these systems. Before i learnt about VCE loops, i simply used a database, where when a player 'bought' the spell, it fired a relay up a chain of bricks until it found one that hadn't had a relay, which then fired the relay to the side, where the spell events were. Hell, i could probably find a save of it. However, it is much easier just to use VCE loops. onVariableTrue > Self > VCE_IfValue > "1" "Equals" "1" "Blah" will loop every however long, but it will work with as many clients as you can give it. Another less-popular way is using functions. State a function called <var:cl:bl_id>, then call it, and have onVariableFunction > Self > CallFunction > "<var:cl:bl_id>" " ". That way, each client can only have one loop, and buying the spell multiple times will not make it fire twice as often, i think. Edit: Turns out those spell database systems i built were for VCE v4. |
| Navigation |
| Message Index |
| Next page |