To Executor2


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by CogKing on January 31, 1998 at 23:53:16:

Got your email OK... :-)

First thing : you should not declare regenerate as a message; it is only a label !
Simply remove "message regenerate" from the symbols section. Note that
nothing will call your "regenerate" subroutine unless you do it yourself, this is
not magic... :-)

Second, this part has to be rewritten :

if (healers==4) Print("4 Shield Regenerators In Inventory") SetInv(player, 116, healers);
else if (healers==3) Print("3 Shield Regenerators In Inventory") SetInv(player, 116, healers);
else if [...]

You must have a semicolumn after the Print statement, and if you have more
than one statement in an if or else you must use {} to delimit it.

if (healers==4)
{
Print("4 Shield Regenerators In Inventory");
SetInv(player, 116, healers);
}
else if (healers==3)
{
Print("3 Shield Regenerators In Inventory");
SetInv(player, 116, healers);
}
else if [...]

Redo this and try again.
Tell me if it is better after you make all the corrections above.

-CogKing


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]