Hi everyone, I wasn't sure where to post this but as I haven't actually scripted anything yet, I thought this would be the proper place.
I've been trying to learn the basics of Mafia scripting by reading a lot of the posts on this forum, the user manual, the wiki and looking at several scripts. I'm not sure I want to try scripting in ASH quite yet. I'd like to keep my scripts simple; you know...the KISS formula.
Anyway here are my questions:
1. In the user manual under flow control, what the heck do the boolean operators ( == and != ) mean?
2. This is a bit more convoluted and is a multi-multi-part question. It has to do with the 'use' command and that it tries to 'acquire' the item before said item is used, no matter if it is in your inventory or if it has to be bought from the mall, etc. I'd like to 'use' several items ONLY if they are in my inventory?. Specifically, I'd like to 'use' black paisley oyster egg ONLY if they are in my inventory, Same thing for a black striped oyster egg
Similarly, I'd like to do the same thing with red, green, blue snowcones and green, lavender, pink candy hearts.
For the oyster eggs, would the code be simply:
if black paisley oyster egg >0; use * black paisley oyster egg;
if black striped oyster egg >0; use * black striped oyster egg;
...How 'bout for the snowcones?
if red snowcone >0; use 1 red snowcone;
if green snowcone >0; use 1 green snowcone;
if blue snowcone >0; use 1 blue snowcone;
...I know the snowcones are different - KOL will allow only 1 snowcone in use at a time, therefore I'm hoping this is sufficient. However, will I get an error message? For instance, if i have a red snowcone in inventory and use it, will the green and blue snowcone lines return an error message?
As for the candy hearts, I'm not really sure about this:
if green candy heart >0; use * green candy heart;
if lavender candy heart >0; use * lavender candy heart;
if pink candy heart >0; use * pink candy heart;
Are these viable code?
Thanks for your input
Moondog
I've been trying to learn the basics of Mafia scripting by reading a lot of the posts on this forum, the user manual, the wiki and looking at several scripts. I'm not sure I want to try scripting in ASH quite yet. I'd like to keep my scripts simple; you know...the KISS formula.
Anyway here are my questions:
1. In the user manual under flow control, what the heck do the boolean operators ( == and != ) mean?
2. This is a bit more convoluted and is a multi-multi-part question. It has to do with the 'use' command and that it tries to 'acquire' the item before said item is used, no matter if it is in your inventory or if it has to be bought from the mall, etc. I'd like to 'use' several items ONLY if they are in my inventory?. Specifically, I'd like to 'use' black paisley oyster egg ONLY if they are in my inventory, Same thing for a black striped oyster egg
Similarly, I'd like to do the same thing with red, green, blue snowcones and green, lavender, pink candy hearts.
For the oyster eggs, would the code be simply:
if black paisley oyster egg >0; use * black paisley oyster egg;
if black striped oyster egg >0; use * black striped oyster egg;
...How 'bout for the snowcones?
if red snowcone >0; use 1 red snowcone;
if green snowcone >0; use 1 green snowcone;
if blue snowcone >0; use 1 blue snowcone;
...I know the snowcones are different - KOL will allow only 1 snowcone in use at a time, therefore I'm hoping this is sufficient. However, will I get an error message? For instance, if i have a red snowcone in inventory and use it, will the green and blue snowcone lines return an error message?
As for the candy hearts, I'm not really sure about this:
if green candy heart >0; use * green candy heart;
if lavender candy heart >0; use * lavender candy heart;
if pink candy heart >0; use * pink candy heart;
Are these viable code?
Thanks for your input
Moondog