Mirage Engine
Changing NPC's Max Stats - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Changing NPC's Max Stats (/showthread.php?tid=1513)



Changing NPC's Max Stats - Abyss - 14-01-2008

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.


Re: Changing NPC's Max Stats - Matt2 - 14-01-2008

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...


Re: Changing NPC's Max Stats - Abyss - 14-01-2008

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


Re: Changing NPC's Max Stats - Matt2 - 14-01-2008

[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


Re: Changing NPC's Max Stats - Abyss - 14-01-2008

Thanks for the help, ill try it out tomorrow and tell you if it worked, Thanks!


Re: Changing NPC's Max Stats - Matt2 - 15-01-2008

I assumed he'd change the variables after all the advice. xD

Go change them to longs. Tongue


Re: Changing NPC's Max Stats - Abyss - 15-01-2008

thanks, and I already guessed that they should be longs


Re: Changing NPC's Max Stats - Abyss - 15-01-2008

[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.


Re: Changing NPC's Max Stats - Abyss - 15-01-2008

I get this:

Code:
Private Sub scrlSTR_Change()
    lblSTR.Caption = STR(scrlSTR.Value)
End Sub



Re: Changing NPC's Max Stats - Matt2 - 15-01-2008

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...


Re: Changing NPC's Max Stats - Abyss - 15-01-2008

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?


Re: Changing NPC's Max Stats - Matt2 - 15-01-2008

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


Re: Changing NPC's Max Stats - Abyss - 15-01-2008

Oh great, thanks, ill PM you then Tongue