Re: Few ideas about fully accessible ide

2017-07-11 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


Re: Few ideas about fully accessible ide

Hi,liclips a variation of eclipse is what I have been using for my python class, it takes care of indentation for you,single tab is 4 spaces which is what's recommended in python,jaws says invalid if the IDE thinks something is screwed up and so on.Your idea of code navigation certainly sounds good,and I haven't actually tried such on lieclipse so far. Probably due to me not knowing of such features in the firstplace.However aren't there addons for NVDA that do the same thing,navigate in code with the use of certain keyboard shortcuts for different indentation levels.Grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=318965#p318965





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: a question on python

2017-07-01 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


Re: a question on python

Ahoy all,Thanks for your answers. That didn't really work, that is that's not what I was aiming for.but I don't have time just atm,so can't try it out,but I guess with experemantation I should be able to do something. if it doesn't work,I'll pop back in here. and if it does work,I'll write back saying so.Blademan and others,sending you guys forum mail,could use your help with something. edit ignore the mail,have it sorted.Grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=317449#p317449





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: a question on python

2017-06-30 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


Re: a question on python

Ahoy all,Thanks for your answers. That didn't really work, that is that's not what I was aiming for.but I don't have time just atm,so can't try it out,but I guess with experemantation I should be able to do something. if it doesn't work,I'll pop back in here. and if it does work,I'll write back saying so.Blademan and others,sending you guys forum mail,could use your help with something.Grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=317449#p317449





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: a question on python

2017-06-30 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


Re: a question on python

Ahoy all,Thanks for your answers. That didn't really work,but I don't have time just atm,so can't try it out,but I guess with experemantation I should be able to do something. if it doesn't work,I'll pop back in here. and if it does work,I'll write back saying so.Blademan and others,sending you guys forum mail,could use your help with something.Grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=317449#p317449





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: a question on python

2017-06-23 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


Re: a question on python

Hello there,Thank you both for your replys and suggestions.Right now I use the for to loop through line,split them into words and then use slicing to find the words. I have yet to learn regex,but aye, when I do, I might see if I can make that work.Here's the code I have written,no dictionary so far,though.inp = input('enter the name of the file to be opened\n') #asks for a file,opens it,a guard to handle misspelled or files that don't exist
try:
fhand = open(inp)
except:
print('Are you on medications? there is no',inp)
exit()
per = input('Enter the percentage you would like to calculate from,percentage of the fees recieved')
perc = float(per)
for line in fhand:
if not line.startswith('»') or  line.startswith('» Falconner:'): continue
words = line.rstrip().split() #stripping the right spaces and splitting into words
feesrecieved = words[-2]
actam = float(feesrecieved)*perc/100 #actual amount the answer per haul based on percentage
print(words[1], actam)Now how would I go about doing actam(actual amount)'s total for each person,instead of just printing actam for each person.look at the log in the first post, looking for a way to make it so that korths 2 actams are totaled and printed,and same for rest. dragon and so on.Thanks!grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=316555#p316555





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

a question on python

2017-06-23 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


a question on python

Ahoy all.I am making my slow way across python,and this time better than I have previously.Perhaps its the better material I'm refering to, or all the scripting I have tried has helped me in understand certain things which I wasn't able to before.This is kind of game related,and kind of not. Its more of how would I go about doing x in python or any programming language type of question more than anything else.I have Written a utility in python that reads a file,which contains settlement logs from  core-exilesa abbreviated output of which is as followsJun 15th 08:55 pm» Dragon: Wesbec Delivery (192) to Magnia / Set Fee: 103697 CR Jun 15th 06:47 pm» Achilleos: Wesbec Delivery (102) to Daray / Set Fee: 4776 CR Jun 15th 06:43 pm» Achilleos: Wesbec Delivery (152) to Quettin / Set Fee: 6340 CR Jun 15th 06:43 am» Dragon: Wesbec Delivery (200) to Furia Station / Set Fee: 105039 Jun 14th 05:54 pm» Korth: Wesbec Delivery (183) to Rosotika / Set Fee: 46576 CR Jun 14th 05:54 pm» Korth: Wesbec Delivery (180) to Sul-Rodet / Set Fee: 45812 CR There's a reason why I have the log as that long,bare with me.So far I have managed to make it take input of a filename,read lines in the file,determine which we want,discard which are not needed.the lines beginning with the symble » are the ones we are interested in.the word 1 or the second word as they'd say in python and other languages is the word in the lines we are interested in,along with the second last word.I.E Dragon,and the numbers before CRSo far I have managed to get the first word and the second last from each line and have the utility get second last words  percentage and print it out.What I'd like to do is, have the code read each line,and give me the total of the percentages of all dragons hauls,korths and so on.They won't be in order,as can be seen from the log above,I.E dragon appears once,then twice with another in between.I'm thinking I could achieve something like this with dictionaries, any ideas? suggestions?Thanks!grryf

URL: http://forum.audiogames.net/viewtopic.php?pid=316527#p316527





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

VipMud scripting, IFElse and lists

2016-07-02 Thread AudioGames . net ForumDevelopers room : grryfindore via Audiogames-reflector


  


VipMud scripting, IFElse and lists

Ahoy there,I'm hoping that someone with experience with the Vipmud scripting could help me out with this issue I have been having and haven't been able to figure out yet, even though I've read the documentation quite a few times.My first question is related to the if else method, I know that VIPMud script doesn't really have such a feature but I'm guessing the If statements could be nested to achieve the same result? but I haven't been able to figure out how to do it,yet. hence the topic :dLets see if I can state this a bit more clearly  with an example of a alias that does different things depending on what the variable value is.#alias km {#if {@monster="elephant"} {kill elephant}//here is where I would use else if,but there's no way to do that,so I suppose I'd use another if statement here?{#if {@monster="lion"} {recall}//however if the variable @monster is not a lion o
 r elephant or any other animal that's not listed in these if statements{dance}} {jungle}This is obviously wrong, but as obvious as it might appear, I can't find the correct way to write something like this down.Lists are something that I haven't gotten down, at all. I know you can add items to a list,and can call that list up by a key alias or what you will,  but how do you actually go about adding those items from a string to the list in the first place?say I scan, and find  the followingnorth: lion 100%south: tiger 40%east:spider 100%west: skeleton 80%How would I add items or these amimals to a list and get it to say, scan for me and bring up a list to choose from when I write sc or press a key.I'm hoping some of you can clear these questions up for me.cheersgrryf

URL: http://forum.audiogames.net/viewtopic.php?pid=266648#p266648





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector