Warconn Posted August 3, 2008 Author Share Posted August 3, 2008 hey i have a sub with a "str" case that i need to runi am using``` Call Warconn_PlayerDevSystem(index,"str") ``` in my onattack subwhen i attack it is suppost to say "this is working" at the very beginning, but nothing comes up.do i have the right commands, or what should i putthe name of the sub is Warconn_PlayerDevSystemthanks Link to comment Share on other sites More sharing options...
brutal Posted August 3, 2008 Share Posted August 3, 2008 Please show us the Warconn_PlayerDevSystem sub (Please also use the code tags) Link to comment Share on other sites More sharing options...
Warconn Posted August 3, 2008 Author Share Posted August 3, 2008 ``` '|||||||||||||||||||||||||||||||| Sub Warconn_PlayerDevSystem(index,"str") '|||||||||||||||||||||||||||||||| Dim counter1 Dim x Dim points counter1=GetVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str") counter1= counter1+1 Call PlayerMsg(index, "this should be working", 13)Call PutVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str", Int(counter1) ) Select Case script Case "str" If counter1 < 20 Then Call PutVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str", Int(counter1) ) Else Call SetPlayerSTR(Index, GetPlayerSTR(Index) + 1) Call BattleMsg(index, "Your strength has increased due to frequent practice.", 12, 1) End If End Select End Sub```thanks Link to comment Share on other sites More sharing options...
brutal Posted August 3, 2008 Share Posted August 3, 2008 ```'|||||||||||||||||||||||||||||||| Sub Warconn_PlayerDevSystem(index, PType) '|||||||||||||||||||||||||||||||| Dim counter1 Dim x Dim points Call PlayerMsg(index, "this should be working", 13) Select Case PType Case "str" counter1= int(GetVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str")) + 1 If counter1 < 20 Then Call PutVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str", Int(counter1) ) Else Call SetPlayerSTR(Index, GetPlayerSTR(Index) + 1) Call BattleMsg(index, "Your strength has increased due to frequent practice.", 12, 1) Call PutVar("scripts\charextras\" & GetPlayerName(index) & ".ini", "PlayerDevSystem", "str", 0) End If End Select End Sub```There I fixed it up for you, Very nice attempt though. Its nice to see someone try before they ask question :)Edit: I just moved some more stuff around so that it does what I think your going for Link to comment Share on other sites More sharing options...
Warconn Posted August 3, 2008 Author Share Posted August 3, 2008 hey thanks a bunch, it finally works good now. ive been working on this for weeksThanksbtw FSshadowwulf was helping me out with some of it, so i give him alot of the creditThanks again Link to comment Share on other sites More sharing options...
brutal Posted August 4, 2008 Share Posted August 4, 2008 That's fine :P, I don't help to get credit in games. I help to be nice. :P 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