Re: Bgt help topic reincarnation.

I'm not the best coder by anymeans, so, someone willing to provide an actual answer may think I suck and show me a million different ways to do it, but, you could, in theory do this.

string text;

void main()
{
text = magic_wand();
alert("Sarrah has the " + text + ".");
}

string magic_wand()
{
string magic = "magic";
string wand = "wand";
return (magic + " " + wand);
}

Alternatively, to make it more fun,

void main()
{
string item = magic_wand("Giant", "Banana");
alert("Sarah has the " + item + ".");
}

string magic_wand(string a = "magic", b = "wand")
{
return (a + " " + b + "");
}

I haven't tested this, and I may be way wrong due to my inexperience, but hey.  I tried tongue.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : Merin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : coltonhill01 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ishan Dhami via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ishan Dhami via Audiogames-reflector

Reply via email to