*Zeropan* Posted June 24, 2009 Author Share Posted June 24, 2009 whats the command for if you step on a tile it will make a NEW variable w/ value(ex. "Quest = 0") on the Character_info Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 24, 2009 Share Posted June 24, 2009 You mean like, a global variable, where later another script can check to see if Quest=0 or 1?Because you could just have a scripted tile, and use putvar e.g.Call PutVar("Quests.ini", GetPlayerName(Index) & "", "Quest", "0")Then later, you can check it like:If GetVar("Quests.ini", GetPlayerName(Index) & "", "Quest") = "0" ThenThough, it is possible to hold it as a global varialbe (such as set Quest=0, then later have "If Quest = 0 Then", but it's not a good method to use; the ini way is much better). Link to comment Share on other sites More sharing options...
*Zeropan* Posted June 24, 2009 Author Share Posted June 24, 2009 -what about command for making a new .ini file(ex. quest.ini) under accounts>CharacterName folder.- and also doing this command Call PutVar("Quests.ini", GetPlayerName(Index) & "", "Quest", "0") will atomataically find the folder where Quest.ini is stored. I mean like you don't have to tell the engine where to find Quest.in is stored?, if so may i know that command? Link to comment Share on other sites More sharing options...
Bobosk Posted June 24, 2009 Share Posted June 24, 2009 PutVar makes the .ini file, if it doesn't already exist. and you DO have to put the filepath…```Putvar("Accounts\" & GetPlayerLogin(index) & "\Quest.ini", GetPlayerName(Index) & "", "Quest", "0")``` Link to comment Share on other sites More sharing options...
*Zeropan* Posted June 24, 2009 Author Share Posted June 24, 2009 oh oops Sorry let me clarify my question again.What i want to do is make a new variable on the Playername.ini under accounts. Like whoever stepped on that certain tile it will make a new varible on his/her account. Link to comment Share on other sites More sharing options...
durama Posted June 24, 2009 Share Posted June 24, 2009 @*Zeropan*:> oh oops Sorry let me clarify my question again.What i want to do is make a new variable on the Playername.ini under accounts. Like whoever stepped on that certain tile it will make a new varible on his/her account.ya it will automatically create the variable if its not already inside the ini file Link to comment Share on other sites More sharing options...
Bobosk Posted June 24, 2009 Share Posted June 24, 2009 That's what the GetPlayerLogin(index)/GetPlayerName(Index) is for… you might want to check out teh tutorials in the scripting section, and LOOK at the "All commands" topic posted in the announments section Link to comment Share on other sites More sharing options...
durama Posted June 24, 2009 Share Posted June 24, 2009 Sry this is what you need. :P```Call PutVar("Accounts\" & GetPlayerLogin(Index) & "_Info.ini", "Header", "Variable", "Value")```ok thats what you need just replace the Header, Variable, and Value.P.S. It would be better to make a new .ini because this will effect all of their characters.If youd rather have it effect the one character try the following…```Call PutVar("Accounts\" $ GetPlayerLogin(Index) & "_" & GetPlayerName(Index) & ".ini", "Header", "Variable", "Value")```This will make a new .ini in the account folder called PlayerLogin_PlayerName.iniReplace the Header, Variable, and Value Like Normal. Link to comment Share on other sites More sharing options...
*Zeropan* Posted June 24, 2009 Author Share Posted June 24, 2009 @durama:> Sry this is what you need. :P> > ```> Call PutVar("Accounts\" & GetPlayerLogin(Index) & "_Info.ini", "Header", "Variable", "Value")> ```> ok thats what you need just replace the Header, Variable, and Value.> > P.S. It would be better to make a new .ini because this will effect all of their characters.> > If youd rather have it effect the one character try the following…> > ```> Call PutVar("Accounts\" $ GetPlayerLogin(Index) & "_" & GetPlayerName(Index) & ".ini", "Header", "Variable", "Value")> ```> This will make a new .ini in the account folder called PlayerLogin_PlayerName.ini> Replace the Header, Variable, and Value Like Normal.Finally thanks dude! 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