I am trying my hand at C programming, because it has a Switch - Case statements but seem to run into an issue here. what I am trying to do is take reagents: G_Reagent = {reagent-water, reagent-fire, reagent-air, reagent-earth, gem, reagent-ethereal} and it have so when my bag is full with one of the reagents but not the other type it will ignore trying to fill that container. I hope that I am making sense.
<triggers>
<trigger
enabled="y"
group="(reagents)"
ignore_case="y"
keep_evaluating="y"
match="Your Vandemaar's Reagent Bag glows white as it accumulates possessions from the ether."
regexp="y"
send_to="12"
sequence="100"
>
<send>Send ("open itemg")
Send ("get all itemg")
Send ("close itemg")
switch(G_Reagent) {
case "reagent-air"
Send ("put all\.", G_Reagent, " airreagents");
Break;
case "reagent-earth"
Send ("put all\.", G_Reagent, " earthreagents");
Break;
case "reagent-water"
Send ("put all\.", G_Reagent, " waterreagents");
Break;
case "reagent-fire"
Send ("put all\.", G_Reagent, " firereagents");
Break;
case "gem"
Send ("put all\.", G_Reagent, " gemreagents");
Break;
case "reagent-ethereal"
Send ("put all\.", G_Reagent, " etherealreagents");
Break;
}</send>
</trigger>
</triggers>