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 .
×

API capabilities (Idea inside that I want to implement for my campaign)

Can I implement the below idea using JavaScript with roll20's api? I was thinking this would be something I could have on a map tile, giving the players the chance to choose how they divvy resources Mini City Simulator Players take over a place similar to castle/keep/town etc. Set defined amount of turns (seasons, days, years) players start with two civilians players decided if civilians go to farm, housing, or military farms provide support for housing and military, cannot have housing and military without same amount of farms (3 farms, 2 housing, 1 military) housing provides chance for more civilians military used to generate military for future assaults/defense/etc Also military has chance to generate heroic NPC each turn ticks, players get chance for more civilians and then place civilians end of turns will show results for military strength (whatever arbitrary number I provide for each military unit) and the amount of Heroic NPCs generated This idea is still in development, however I am more capable with Django and Python and could do this on the outside, having the players go there, however I would hope that someone else would like to use this applet for their campaign if it works out.
1437013240
The Aaron
Pro
API Scripter
All of this can be done in the API.
So you want to play Civilization? A great game BTW,
Thanks "The Aaron". Essentially I want to give the players the opportunity to make decisions on a more worldly scale, this will involve a Castle Keep that they have been working months to eventually take back.
1437121129
Ziechael
Forum Champion
Sheet Author
API Scripter
Sounds like a fun 'mini game' to accompany the campaign, i also thought Civilization when i first read it but like al e. says, thats a great game and any game would benefit from having elements of it :) I've got something similar kicking off in my campaign next week, they players are just about done reclaiming a stronghold which they will take control of, it is on a small island so i'm giving them the option of building cottages in addition to the normal stronghold upgrading. Each cottage will attract 1d4 peasants who will take up 1d130 professions (had to be big to make sure the common jobs were weighted correctly lol). The jobs will earn x gp per month of which the land owners (players) will be able to tax... like you, i wanted to add depth so i'll be watching your progress with great interest!
To have the ability to use the script editor and run scripts within my campaign I need to be a mentor. Right now it's hard for me to justify an additional $5 a month to do that. Is there any other way to develop scripts and test them in roll20 so that as I get this project up and running it will be easier to determine whether I run this internally or direct my players to an external site?
1437235209
Ziechael
Forum Champion
Sheet Author
API Scripter
You could ask a kind mentor level subscriber to create a test campaign for you and give you co-GM rights... that way you will have access to the API and should be able to test your scripts that way? I'm travelling otherwise i'd test my theory so please correct me if i'm wrong about what co-GM's can do with regards to installing/refreshing and running scripts.
1437403055
The Aaron
Roll20 Production Team
API Scripter
Co-GMs do have access to the scripts.