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

[5th OGL] Roll queries

1492886347

Edited 1492893824
Phoxounet
Sheet Author
Translator
Hi, I am currently reworking and adapting the 5th OGL character sheet to adapt it for a game my group will play on. Even if this sheet uses the new translation way, some queries are hard coded. These are : - Private/public roll query - Advantage/Disadvantage query - Cast at higher level query ( drop down list attached to it). I easily managed the first two of them. However, the third one can be found in the sheet worker section and even if I change the query text, the query itself stays the same in game. I passed a search on the html code for the "Cast at higher level" string but can't find it anymore... There just is the string I added. Dunno why the modification isn't in game.. Any idea ? Regards :)
1492909037
Silvyre
Forum Champion
Currently, the i18n tools do not work within Roll Query labels. This is being repaired by the Dev Team right now. I hope this helps!
1492935683

Edited 1492935900
Phoxounet
Sheet Author
Translator
Thank you for your answer, Silvyre but it actually doesn't help. :( I did not use the i18n tools, I changed the hard coded queries. Example, line 238  <option value="{{query=1}} ?{Advantage?|Normal Roll,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Advantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20|Disadvantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20}" data-i18n="query-adv">Query Advantage</option> was recoded as :  <option value="{{query=1}} ?{Avantage/Désavantage ?|Jet Normal,&#123&#123normal=1&#125&#125 &#123&#123r2=[[0d20|Avantage,&#123&#123advantage=1&#125&#125 &#123&#123r2=[[1d20|Désavantage,&#123&#123disadvantage=1&#125&#125 &#123&#123r2=[[1d20}" data-i18n="query-adv">Query Advantage</option> Every string I recoded in the html section is ok. However, I am wondering what's going on with the strings in the javascript section. These 2 lines are are identical (one for PC section and one for NPC section). Line 6068 and line 6674 :                         var query = "?{Cast at what level?";                         for(i = 0; i < 10-spelllevel; i++) {                             query = query + "|Level " + (parseInt(i, 10) + parseInt(spelllevel, 10)) + "," + i; I changed it into :                 var query = "?{Lancer à quel Niveau ?";                 for(i = 0; i < 10-v.repeating_spell_spelllevel; i++) {                     query = query + "|Niveau " + (parseInt(i, 10) + parseInt(v.repeating_spell_spelllevel, 10)) + "," + i; These modifications are hard coded and we can't use the i18n tools. However, I believed that changing that hard coded sections would change the strings. It does work for the 2 first queries. But it doesn't work for the last ones. After the modifications, I can't find "cast at what level?" string anymore in the code. Yet, the app returns this string even if it does not exist anymore. I'm lost... How can a string I can't find in the code still be there in the app ? I missed something but can't find what it is. ><