jsorr2 Posted October 31, 2012 Author Share Posted October 31, 2012 Is there someway to write an if statement into the client code to change people's NPC sprites depending on their name?Like:if playerName = "Thomas"sprite = 15endI'm terrible at coding if you'd noticed ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Growlith1223 Posted October 31, 2012 Share Posted October 31, 2012 Select Case Player(Index).NameCase "name"Player(Index).Sprite = numberEnd Selectput that in the DrawPlayerSprite Link to comment Share on other sites More sharing options...
jsorr2 Posted October 31, 2012 Author Share Posted October 31, 2012 champion, thanks ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) 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