FatTwinkie Posted October 15, 2009 Author Share Posted October 15, 2009 Alright, so here's my plan with my game.I would like the characters you play as to change change their look (basically change sprites) once they hit a certain level. Is that possible? Link to comment Share on other sites More sharing options...
Kite Posted October 15, 2009 Share Posted October 15, 2009 Under your levelup sub add a```If GetPlayerLevel(Index) = 10 ThenCall SetPlayerSprite(Index, 5)End If```10 is the level, and 5 is the sprite number. Link to comment Share on other sites More sharing options...
FatTwinkie Posted October 15, 2009 Author Share Posted October 15, 2009 Could you expand more on that? I'm not programmer or coder so I have no clue where this code is supposed to go. I get what it does, but have no clue where the code is to be copied to. Link to comment Share on other sites More sharing options...
Patrick Posted October 15, 2009 Share Posted October 15, 2009 in the main.txt ctrl-f levelup subThen paste that at the bottom of the sub. Link to comment Share on other sites More sharing options...
Kite Posted October 15, 2009 Share Posted October 15, 2009 Allright so open up your Main.txt, or Main.ess, in the Server folder/Scripts.Hit ctrl + F and search for levelup. You should find this.```Sub PlayerLevelUp(Index)```So post what I allready posted right before the Loop starts. like so```Sub PlayerLevelUp(Index) Dim TotalExp Do While GetPlayerExp(Index) >= GetPlayerNextLevel(Index) TotalExp = GetPlayerExp(Index) - GetPlayerNextLevel(Index) Call SetPlayerLevel(Index, GetPlayerLevel(Index) + 1) If GetPlayerLevel(Index) = 10 Then Call SetPlayerSprite(Index, 5) End If Loop```Just post the code there, then hit save, or ctrl + S.Hit reload scripts on the server, and then go kill till you level up to 10, or level yourself by the server. Link to comment Share on other sites More sharing options...
FatTwinkie Posted October 15, 2009 Author Share Posted October 15, 2009 I put the code in and reloaded the server. Still doesn't work. I hit level ten and nothing happened. Link to comment Share on other sites More sharing options...
viciousdead Posted October 15, 2009 Share Posted October 15, 2009 @FatTwinkie:> Alright, so here's my plan with my game.> > I would like the characters you play as to change change their look (basically change sprites) once they hit a certain level. Is that possible?O_O LOL YOUR NAME ITS FUNNY XD! Link to comment Share on other sites More sharing options...
gamerdudedude Posted October 15, 2009 Share Posted October 15, 2009 ok whats with the name dissing spam? Link to comment Share on other sites More sharing options...
oolkingloo Posted October 15, 2009 Share Posted October 15, 2009 @βushiε:> ok whats with the name dissing spam?Welcome to Eclipse users with posts >= 100.:azn: 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