monowolf00 Posted November 16, 2008 Author Share Posted November 16, 2008 ```Sub ScriptedNPC Case0 Call PlayerMsg(index, GetVar(Responses.ini,section1, rand(1,100)) End Sub```Then make an ini. like this name Responses.ini.```[section1]param1= Helloparam2= Go away!param3= *Crys*(97 more params go here)```If you haven't figured out, I am trying to make a random npc response script. Please tell what is wrong with it, or if it is fine as is. Link to comment Share on other sites More sharing options...
DarkMazer Posted November 17, 2008 Share Posted November 17, 2008 Just a couple small problems. ```Sub ScriptedNPC Case0 Call PlayerMsg(index, GetVar("Responses.ini","section1", "param" & rand(1,100)) End Sub```After adding the quotes and that bit with "param" &, it should work fine. Link to comment Share on other sites More sharing options...
shadowwulf Posted November 17, 2008 Share Posted November 17, 2008 still missing a )…```1, 100)))``` Link to comment Share on other sites More sharing options...
monowolf00 Posted November 17, 2008 Author Share Posted November 17, 2008 So this should work=```Sub ScriptedNPC Case0 Call PlayerMsg(index, GetVar("Responses.ini","section1", "param" & rand(1,100))) End Sub``````[section1]param1= Helloparam2= Go away!param3= *Crys*(97 more params go here)``` Link to comment Share on other sites More sharing options...
AdrianC Posted November 17, 2008 Share Posted November 17, 2008 i think so Link to comment Share on other sites More sharing options...
monowolf00 Posted November 17, 2008 Author Share Posted November 17, 2008 Ok script is now in script database. Link to comment Share on other sites More sharing options...
AdrianC Posted November 17, 2008 Share Posted November 17, 2008 Heh, alright. 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