|
-
Feb 9th, 2006, 03:58 PM
#1
Thread Starter
Addicted Member
looping...
Ok i have this code
VB Code:
If intExp > llevel Then
If intLevel = (level - 1) Then
llevel = llevel * 1.7
level = level + 1
intLevel = intLevel + 1
frmRPG.S.Enabled = True
intHeal = intHeal + 10
intHP = intMaxHP
frmRPG.cmdFlee.Caption = "Use Heal (" & intHeal & ")"
intSet = intSet + 15
frmRPG.Label1.Caption = "Skill Credits: " & intSet
frmRPG.Label4.Caption = "LVL"
statp = statp + 2
If intLevel = 15 Then
frmRPG.Option8.Visible = True
End If
End If
End If
and i want that to loop until intExp > llevel that is not true anymore.... How would i do that?
The Tempest Shall Never Die.
-
Feb 9th, 2006, 04:04 PM
#2
Re: looping...
VB Code:
Do While intExp > llevel
If intLevel = (level - 1) Then
llevel = llevel * 1.7
level = level + 1
intLevel = intLevel + 1
frmRPG.S.Enabled = True
intHeal = intHeal + 10
intHP = intMaxHP
frmRPG.cmdFlee.Caption = "Use Heal (" & intHeal & ")"
intSet = intSet + 15
frmRPG.Label1.Caption = "Skill Credits: " & intSet
frmRPG.Label4.Caption = "LVL"
statp = statp + 2
If intLevel = 15 Then
frmRPG.Option8.Visible = True
End If
End If
Loop
I think...
Has someone helped you? Then you can Rate their helpful post. 
-
Feb 9th, 2006, 04:06 PM
#3
Re: looping...
That would work except, he is not actually changing the value intExp anywhere within the loop.
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Feb 9th, 2006, 04:08 PM
#4
-
Feb 9th, 2006, 04:09 PM
#5
Re: looping...
I'll get my coat...
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Feb 9th, 2006, 04:14 PM
#6
Thread Starter
Addicted Member
Re: looping...
lol :P that totally just froze my game
The Tempest Shall Never Die.
-
Feb 9th, 2006, 04:17 PM
#7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|