Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing NPC's Max Stats
#1
Hey all,

Sigh... I'm even more dumb then I thought I were.

As some people may have read, I want to change the scrollbars for an NPC's Strength, Defense, Speed, Magic, Health, EXP Given to a textbox so you can put in whatever number you want.
This may be a good thing for other games too since you can make really strong NPC's with it which requires multiple people to be able to kill it.
Well, I thought it was a nice idea but I found out that I really suck at coding, so i'm asking very nicely to a good and very kind person if he/she can make a tutorial for me how to do it. So i want the scrollbars changed to textboxes (you can also keep the scrollbars but I want to be able to let the NPC's give more then 32k (max Integer value)Exp or have more then 32k strength.
Anyway, A big, very,very big thanks to the one who makes this, also thanks for the people who tried to help me in my other post.
Reply
#2
Abyss Wrote:Hey all,

Sigh... I'm even more dumb then I thought I were.

As some people may have read, I want to change the scrollbars for an NPC's Strength, Defense, Speed, Magic, Health, EXP Given to a textbox so you can put in whatever number you want.
This may be a good thing for other games too since you can make really strong NPC's with it which requires multiple people to be able to kill it.
Well, I thought it was a nice idea but I found out that I really suck at coding, so i'm asking very nicely to a good and very kind person if he/she can make a tutorial for me how to do it. So i want the scrollbars changed to textboxes (you can also keep the scrollbars but I want to be able to let the NPC's give more then 32k (max Integer value)Exp or have more then 32k strength.
Anyway, A big, very,very big thanks to the one who makes this, also thanks for the people who tried to help me in my other post.

You can also edit the max that the scrollbar goes up to, rather it in design mode or during run time...

But converting them to text boxes shouldn't be that difficult.

I suppose I can try to throw something of a tut together.

It's really more basic programming than a MSE feature, however...
Reply
#3
but the max the scrollbar can is around 32k now because of the integer, and I want it higher
Thanks for the help and quick responses, im starting to like this forum Smile
Reply
#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
#5
Thanks for the help, ill try it out tomorrow and tell you if it worked, Thanks!
Reply
#6
I assumed he'd change the variables after all the advice. xD

Go change them to longs. Tongue
Reply
#7
thanks, and I already guessed that they should be longs
Reply
#8
[CUT]

Matt Wrote:[Edit]



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

[CUT]


:S I can't find Sub NPCEditorOk, and I also can't find the code.
Maybe it's because i'm using Elysium?
But thanks for the help.
Reply
#9
I get this:

Code:
Private Sub scrlSTR_Change()
    lblSTR.Caption = STR(scrlSTR.Value)
End Sub
Reply
#10
Double click on the Save Command Button, and let's see what you get there.

This is a support forum for MSE, not Elysium, just to let you know...
Reply
#11
i'll download MS then, I can't find any of those things you're saying thanks for the help, but maybe I have to find another hobby

Oh, what version of MS should I use?
Reply
#12
I would recomment 3.03, no licensed BS. But we don't support that. However, if you asked a question about 3.03, no one would know, unless it's something MSE changed. xD

If you want, I can be your programmer. I have nothing better to do, and since I know the language, I don't mind working with Elysium.

PM me for details. For some reason, you like to avoid PMing me. xD
Reply
#13
Oh great, thanks, ill PM you then Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)