Ok I have been trying to edit my code so that all newbies are neutral but I don’t know what IM doing wrong but I need help
What I have done ( I know it is very wrong lol )
Nanny_Fun(HANDLE_CON_GET_ALIGNMENT)
{
CharData *ch = CH(d);
ch->alignment = 0;
d->connected = CON_GET_TIMEZONE;
return;
}
The old NANY
Nanny_Fun(HANDLE_CON_GET_ALIGNMENT)
{
CharData *ch = CH(d);
switch (toupper(argument[0]))
{
case 'G':
d_println(d, "{cYou are now {Wgood{c.{x");
ch->alignment = 750;
break;
case 'N':
d_println(d, "{cYou are now {Yneutral{c.{x");
ch->alignment = 0;
break;
case 'E':
d_println(d, "{cYou are now {Revil{c.{x");
ch->alignment = -750;
break;
default:
d_println(d, "{cThat's not a valid alignment.{x");
d_println(d,
"{cWhich alignment ({WG{c)ood/({WN{c)eutral/({WE{c)vil? {x");
return;
}
send_deity_info(d);
d_println(d, "{cWhat deity would you like to worship?{x");
d->connected = CON_GET_DEITY;
return;
}
If you could just give me a hint I would be happy because IM stumped
What I have done ( I know it is very wrong lol )
Nanny_Fun(HANDLE_CON_GET_ALIGNMENT)
{
CharData *ch = CH(d);
ch->alignment = 0;
d->connected = CON_GET_TIMEZONE;
return;
}
The old NANY
Nanny_Fun(HANDLE_CON_GET_ALIGNMENT)
{
CharData *ch = CH(d);
switch (toupper(argument[0]))
{
case 'G':
d_println(d, "{cYou are now {Wgood{c.{x");
ch->alignment = 750;
break;
case 'N':
d_println(d, "{cYou are now {Yneutral{c.{x");
ch->alignment = 0;
break;
case 'E':
d_println(d, "{cYou are now {Revil{c.{x");
ch->alignment = -750;
break;
default:
d_println(d, "{cThat's not a valid alignment.{x");
d_println(d,
"{cWhich alignment ({WG{c)ood/({WN{c)eutral/({WE{c)vil? {x");
return;
}
send_deity_info(d);
d_println(d, "{cWhat deity would you like to worship?{x");
d->connected = CON_GET_DEITY;
return;
}
If you could just give me a hint I would be happy because IM stumped