RE: TIB: Speed problems


[Prev][Next][Index][Thread]

RE: TIB: Speed problems




Use you speed var as a diviser.

for(a,1,some.big.number/speed)

or, use the step

for(a,1,some.number,speed)  it will count by the number of the speed

ie.  if speed is 3 then it will count:  1,4,7,10,13...

this will get to your top number faster.

> -----Original Message-----
> From: owner-ti-basic@lists.ticalc.org
> [mailto:owner-ti-basic@lists.ticalc.org]On Behalf Of Rob Smith
> Sent: Friday, March 24, 2000 6:22 PM
> To: ti-basic@lists.ticalc.org
> Subject: Re: TIB: Speed problems
>
>
>
> for i, 1, 100-speedstat
> endfor
> At 07:11 PM on Friday, 3/24/00 -0500, you wrote:
>
> >I am currently under way with an RPG.  It is approximately 40%
> complete.  But
> >I need a little help.  I cant figure out how to use the speed stat for a
> >character in the battle engine.  I have a variable that represents the
> >characters speed and I want to use it for how long it is until
> he will get a
> >turn in a battle.  As the character's level goes up the speed
> stat will go
> >up, but my problem is that I am not sure how to make the wait
> time less when
> >the variable is increasing with the level.
> >If this makes any sense to anyone and you know how to do this
> can you help me
> >out please. Thanks.
> >
> >CalenWakefield@aol.com
>
> ----
> Rob Smith
> <a href="http://pa.ticalc.org">Visit Programmers Anonymous Today</a>
> <a href="http://www.tigalaxy.com">Come and see the Improved TIGALAXY
> Website</a>
> <a href="mailto:kormoc@netzero.net">Email-Me</a>
> <a href="aim:addbuddy?screenname=Billvortex">Add Me To Your Buddy List</a>
> ----
> Stupidity got us into this mess - why can't it get us out?
>
> __________________________________________
> NetZero - Defenders of the Free World
> Get your FREE Internet Access and Email at
> http://www.netzero.net/download/index.html
>
>




Follow-Ups: References: