Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing NPC's Max Stats
#4
[Edit] Removed crazy explination. Enjoy the easy to follow tut.

If you want to replace it, and use a text box...

Lemme open up my MSE...

Alright.

Delete the scroll bar for Strength[scrlSTR], while in design mode

Now, draw a text box where the scroll bar would be.

Name it txtSTR.

Switch to code view[basically, double click anywhere on any form].

Now, Under Sub NPCEditorOK you want to find this code
Code:
Npc(EditorIndex).STR = frmNpcEditor.scrlSTR.Value

And make it

Code:
If IsNumeric(frmNPCEditor.txtSTR.Text)
    Npc(EditorIndex).STR = frmNPCEditor.txtSTR.Text
End If

Rince and repeat for each scroll bar.

If you get any problems, please ask. Man, that tut was easier to write than I thought.

Also, I enjoy helping people learn VB. If you actually want to understand what any of that does, don't hesitate to ask.

I'm glad you like it here. I hated it until I started PDoA. Tongue
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)