Alerd Posted October 21, 2012 Author Share Posted October 21, 2012 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 More sharing options...
or3o Posted October 23, 2012 Share Posted October 23, 2012 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 Suberrorhandler: 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now