Re: Need some simple coding help

2005-03-03 Thread mx2k
thx again, this code is nearly doing as we want and we think to have figured out how to change it to meet our requirments. also thx for the tip using a heap... should there be more problems i'll post again! [mx] -- http://mail.python.org/mailman/listinfo/python-list

Re: Need some simple coding help

2005-03-02 Thread Terry Reedy
"mx2k" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Now you enter a value by which the initiative should be increased, > then adding reaction time to that value and then adding the result to > reaction time. Now soring again by lowest,next,'n'th, etc. and then > again showing th

Re: Need some simple coding help

2005-03-02 Thread Steven Bethard
mx2k wrote: ah, and sorry for that 'unreadable' code, but that was our first try of coding ever. we're working through the python documentaion right now - and - thanks to the post by STeVe we at last now that we have to construct a class for our purpose. Well, you don't *have* to -- it could be don

Re: Need some simple coding help

2005-03-02 Thread Steven Bethard
mx2k wrote: indeed, we're it is our combat timeline. we enter the initiative and reaction time, it should find out the lowest then the next, then the 'n'th etc. and shouw it on the screen like Next action 'Character Name1' at tick No 'Initiative1 2nd action 'Character Name2' at tick No 'Initia

Re: Need some simple coding help

2005-03-02 Thread mx2k
ah, and sorry for that 'unreadable' code, but that was our first try of coding ever. we're working through the python documentaion right now - and - thanks to the post by STeVe we at last now that we have to construct a class for our purpose. Thx for any help mx2k -- http://mail.python.org/mailm

Re: Need some simple coding help

2005-03-02 Thread mx2k
indeed, we're it is our combat timeline. we enter the initiative and reaction time, it should find out the lowest then the next, then the 'n'th etc. and shouw it on the screen like Next action 'Character Name1' at tick No 'Initiative1 2nd action 'Character Name2' at tick No 'Initiative2' [...

Re: Need some simple coding help

2005-03-01 Thread Steven Bethard
mx2k wrote: Hello @ all, we have written a small program (code below) for our own in-developement rpg system, which is getting values for 4 RPG-Characters and doing some calculations with it. now we're trying hard to find out how to get it working with 'n' Characters, so you will be asked to enter

Need some simple coding help

2005-03-01 Thread mx2k
Hello @ all, we have written a small program (code below) for our own in-developement rpg system, which is getting values for 4 RPG-Characters and doing some calculations with it. now we're trying hard to find out how to get it working with 'n' Characters, so you will be asked to enter a number a