Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Max modification


Dawntide
 Share

Recommended Posts

hey,

1\. i want to edit the limit of the stats. So i want to be able to have more than 255 points in 1 stat and i want to add more than 255 to a stat with items, de/buffs, armor, weapons and all the other things.

2\. i want to edit the limit of the price to 999.999.999, but it says invalid property value so which term do i have to use? integer?

thanks in advance!
Link to comment
Share on other sites

But how to use the number in the textbox. I mean when i use

```
If EditorIndex = 0 Or EditorIndex > MAX_ITEMS Then Exit Sub
    lblPrice.Caption = "Price: " & txtPrice.Text
    Item(EditorIndex).Price = txtPrice.text
```
what happens if i type letters in it? i do not know how to do it.

And how exactly change limit of all the stats
Link to comment
Share on other sites

@Dawntide:

> But how to use the number in the textbox. I mean when i use
>
> ```
> If EditorIndex = 0 Or EditorIndex > MAX_ITEMS Then Exit Sub
>     lblPrice.Caption = "Price: " & txtPrice.Text
>     Item(EditorIndex).Price = txtPrice.text
> ```
> what happens if i type letters in it? i do not know how to do it.
>
> And how exactly change limit of all the stats

Use Val(x) to convert the string to an integer. It will ignore letters (so Val("ABC") = 0).
Link to comment
Share on other sites

thanks, seems to work.

Do i need to change these codes too?

```
' are we in a shop?
        If InShop > 0 Then
            Select Case ShopAction
                Case 0 ' nothing, give value
                    multiplier = Shop(InShop).BuyRate / 100
                    Value = Item(GetPlayerInvItemNum(MyIndex, InvNum)).Price * multiplier
```
ItemRec

```
Price As Long
```
modGameEditors

```
' Info
        frmEditor_Item.txtPrice.text = .Price
```
thanks!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...