D
Daeth Eater
Guest
Hi everyone. I'm pretty new to this scripting world, I've only read one tutorial (http://kolmafia.sourceforge.net/advanced.html), and I have caught the gist of it, but I still lack a lot of skills.
The thing is, I'm trying to assemble a "optimum diet" script, that makes a character eat the biggest amount of food he can, without getting drunk, and taking into consideration which "steel organ" the character has. The idea is to use regular chow meins (bat wing, knob sausage and rat appendix ones), cocktailcrafting drinks (although I guess that if the character has SHC I could make him prepare SHC drinks), with the help of ode to booze and milk of magnesium (maybe munchies pill too, I'm not sure).
In order not to have to write the whole name of the food again every time you use it, I wanted to try and see if I canget a string to say "batwng" if the character's class is P or S, "knob sausage" if he is SC or TT, "rat appendix" if he is DB or AT, and then use it to consume [X, 'string' chow mein]. The thing is, I have NO idea how a string works in ASH, between other things.
The only experience with a programming language I have is a year of Pascal learning in 2004, so I?m not really well prepared to do this "diet script" alone.
Suming up, any tutorials, help, or script bits you can give me are welcome. Anybody?
The thing is, I'm trying to assemble a "optimum diet" script, that makes a character eat the biggest amount of food he can, without getting drunk, and taking into consideration which "steel organ" the character has. The idea is to use regular chow meins (bat wing, knob sausage and rat appendix ones), cocktailcrafting drinks (although I guess that if the character has SHC I could make him prepare SHC drinks), with the help of ode to booze and milk of magnesium (maybe munchies pill too, I'm not sure).
In order not to have to write the whole name of the food again every time you use it, I wanted to try and see if I canget a string to say "batwng" if the character's class is P or S, "knob sausage" if he is SC or TT, "rat appendix" if he is DB or AT, and then use it to consume [X, 'string' chow mein]. The thing is, I have NO idea how a string works in ASH, between other things.
The only experience with a programming language I have is a year of Pascal learning in 2004, so I?m not really well prepared to do this "diet script" alone.
Suming up, any tutorials, help, or script bits you can give me are welcome. Anybody?