Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Light Block api?

1435607577

Edited 1435608657
Is there a toggleable API that when toggled on makes it so any token pasted is qeiried and a line of light blocking is ran through it like. !block-center on Makes it so a large dot is placed in the center and !block-ver on makes it so a vertical line runs through when its placed. And !block-hor on makes it so a horizontal line is run through. And !block-Dia on makes it so a diagnal line is run through? And !block-off Just turns off the api's function? And if so could it be made to work with Aaron's snap paste script?
1435608960
The Aaron
Pro
API Scripter
Such a thing could be written...
1435609282

Edited 1435611693
I do not know how to reply to that.
1435611925

Edited 1435612249
Gen Kitty
Forum Champion
It's a trademark of the scriptomancer to mutter "Yeah, that could be coded" and a few hours later he presents you with a working script, that within days or weeks grows into a fully polished jewel of API. ^_^
oh. ok. :)
1435614206
The Aaron
Pro
API Scripter
Hahaha. Sorry about that. For the record, I'll talk about API all day long given the option. =D And I love writing scripts to help people out (you should see the monster I recently wrote for Her Magesty, Queen of Kittens!) What I really should have said was "tell me more about the problem you're trying to solve." but the end of the day at work was super busy and I just threw in the first thing I could type! (I've got abou 400 messages to catch up on from my weekend away from technology! So, tell me what problem you're trying to solve. :)
1435614539
Gen Kitty
Forum Champion
The Queen of Kittania is well pleased with her Court Scriptomancer, and reminds him that he shall be remembered come Yuletide.
1435620518

Edited 1435620728
I thought the requested api was self explanatory. It would be nice to actually use the lighting feature of the game but that takes way too long.,. So I thought if I could just have the tokens be auto light obstruction enabled when I post them. Then I could like, easily and quickly make a forest of trees to block the light at night tiem and so on. It just needs to be turnable onable, be ableto handle multiple size tokens even if its just even square tokens, and not take up the whole token.
1435722766
The Aaron
Pro
API Scripter
So, the general idea here is that you have a script which could be in an on or off state. when in an on state, it would create a DL line which would be in some particular orientation and have some particular shape: o | - / \ You'd like to use it with the copy paste alignment script, which means it would actually need to be a part of that script, or do some fancy foot work to know when and where to draw. It's definitely feasible, though I don't know that I'll be able to work on it any time soon. DL is a bit more tedious than just moving graphics around. =/
1435726790

Edited 1435729304
Oh, that is disappointing. But thanks for thinking about it. P.S. You did get the desire right though.
1435728695
The Aaron
Pro
API Scripter
Yeah, sorry. =( Unfortunately it is complicated by several factors. I'll try to poke at it this weekend if I get some free time.