Zeropan152 Posted March 18, 2009 Author Share Posted March 18, 2009 Is there any way you can make a new varible in the account of each players. Say like for example, i want to a make a variable in PLayerAccount and stored that sez uhh quest = 0.and also i wanna know how will you change that value of that variable to 1(quest = 1), like what would be the command to tdo that.Hope this make sense thank you :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cheesy: :cheesy: :cheesy: Link to comment Share on other sites More sharing options...
AdrianC Posted March 18, 2009 Share Posted March 18, 2009 Yes, using the putvar and getvar commands. Link to comment Share on other sites More sharing options...
Rithy58 Posted March 18, 2009 Share Posted March 18, 2009 You can put var into PlayerAccount.ini but not Character.dat.Call PutVar("Accounts/" & GetPlayerLogin(Index) & "_Info.ini", "Custom", "Quest", 0)That will put a var in the player account files under Custom header, Quest=0.Call PutVar("Accounts/" & GetPlayerLogin(Index) & "_Info.ini", "Custom", "Quest", 1)That will change the var in the palyer account file under Custom header, Quest=0 to Quest=1.Now to use it.Put the command in the script, in the right place, like Scripted Tiles.Sincerely,Rithy Link to comment Share on other sites More sharing options...
Zeropan152 Posted March 18, 2009 Author Share Posted March 18, 2009 @[SB:> Rithy58 link=topic=40764.msg401005#msg401005 date=1237402107]> You can put var into PlayerAccount.ini but not Character.dat.> Call PutVar("Accounts/" & GetPlayerLogin(Index) & "_Info.ini", "Custom", "Quest", 0)> That will put a var in the player account files under Custom header, Quest=0.> > Call PutVar("Accounts/" & GetPlayerLogin(Index) & "_Info.ini", "Custom", "Quest", 1)> That will change the var in the palyer account file under Custom header, Quest=0 to Quest=1.> > Now to use it.> Put the command in the script, in the right place, like Scripted Tiles.> > Sincerely,> RithyIfSO 1 more thing, if your gonna put it in argument, would it look like thisIf GetVar("Accounts/"& GetPlayerLogin(Index) & "_Info.ini", "Custom", "Quest", 1) = true thenbal bla bla… Link to comment Share on other sites More sharing options...
Xavi Posted March 19, 2009 Share Posted March 19, 2009 @Zeropan:> :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cool: :cheesy: :cheesy: :cheesy: :cheesy:Just a tip, I've seen people accused of spamming when they put overly large amounts of smileys in their posts. I'm no moderator obviously, but it's happened. 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