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

Tutorial - Description of Classes


troglodite
 Share

Recommended Posts

Very easy tutorial for make an information/description of the classes when you are making a new character

No surprise why the pictures are writed in spanish, becouse I am ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

**IN CLIENT SIDE**

1º In **frmMenu** create a **lbl** in **picCharacter**, and name it **lblClassInfo**

![](http://i45.tinypic.com/10h61zd.jpg)

2º Search in the Code

Under:

```
Private Sub cmbClass_Click()

```
Paste:

```

Dim lblClassInfo As String

```

Under:

```

newCharClass = cmbClass.ListIndex

newCharSprite = 0

NewCharacterBltSprite

```
Paste:

```

frmMenu.lblClassInfo.Visible = True

If newCharClass = 0 Then

frmMenu.lblClassInfo.Caption = "The Warrior is blah blah blah"

ElseIf newCharClass = 1 Then

frmMenu.lblClassInfo.Caption = "The Wizard is blah blah blah"

Else

frmMenu.lblClassInfo.Caption = "Class without information"

End If
```

Notes

"newCharClass = 0" is really the first Class

In the caption goes the information of your class ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Done!

Example:

![](http://i50.tinypic.com/30vfaro.jpg)

- Excuse my english :$
Link to comment
Share on other sites

Ideally you should make the description be set in the Classes.ini file and not hard-coded, but this gets the job done. ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)
Link to comment
Share on other sites

> Wouldnt it be better to handle it as a case instead of an if statement? Would be tidier and easier to depict more than 3 classes.

Maybe, I dont know ![:blink:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/blink.png)

My VB level is newbie ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Link to comment
Share on other sites

  • 1 month later...

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