Hello.
I'm an italian VB / C++ programmer completly new to MUSH, and i'd like to underdand if what i'd need is something that can be done:
This is what i'd need (how i see it in my mind):
I run a macro (an "alias"?) called "look at the quality"
1) MUSH asks me the value of "%1" (a string)
2) Send "pick %1"
3) Send "look %1"
4) do this pseudocode by matching the example strings with the content of the received descripion of the object:
if "piece of crap" or "almost broken" or "well used" then
send "destroy %1"
else
if "good quality" or "excellent quality" then
send "put %1 on the table"
else
sent "put %1 in the bag"
end if
end if
5) "Deactivate" the trigger... i may look at my equipement and get the same quality/status descriptions, but i dont want to remove my equipement.
Thanks for any help :)
I'm an italian VB / C++ programmer completly new to MUSH, and i'd like to underdand if what i'd need is something that can be done:
This is what i'd need (how i see it in my mind):
I run a macro (an "alias"?) called "look at the quality"
1) MUSH asks me the value of "%1" (a string)
2) Send "pick %1"
3) Send "look %1"
4) do this pseudocode by matching the example strings with the content of the received descripion of the object:
if "piece of crap" or "almost broken" or "well used" then
send "destroy %1"
else
if "good quality" or "excellent quality" then
send "put %1 on the table"
else
sent "put %1 in the bag"
end if
end if
5) "Deactivate" the trigger... i may look at my equipement and get the same quality/status descriptions, but i dont want to remove my equipement.
Thanks for any help :)