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

ScrlAnimation problem with save


Alerd
 Share

Recommended Posts

Hi it's me again ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

I have a problem with scrlAnimation (edit NPC) and so change the spell can save npc beats of this effect, but when you turn back (edit NPC) scrlAnimation resets to 0
Link to comment
Share on other sites

first double click on scrlanimation in the npc editor and make sure it has this piece of code```
Dim sString As String

' If debug mode, handle error then exit out

If options.Debug = 1 Then On Error GoTo errorhandler

If scrlAnimation.Value = 0 Then sString = "None" Else sString = Trim$(Animation(scrlAnimation.Value).Name)

lblAnimation.Caption = "Anim: " & sString

NPC(EditorIndex).Animation = scrlAnimation.Value

' Error handler

Exit Sub

errorhandler:

HandleError "scrlAnimation_Change", "frmEditor_NPC", Err.Number, Err.Description, Err.Source, Err.HelpContext

Err.Clear

Exit Sub
```if that looks allright go to ModGameEditor find the sub NpcEditorInit and just under```
.txtDamage.text = NPC(EditorIndex).Damage
```paste this```
.scrlAnimation.Value = NPC(EditorIndex).Animation
```
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...