I ... I'm leaving and I'm not likely to return.
It's been a pleasure knowing some of you.
Cheers.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote* tutorials on:
- basic LEC GUI - in particular, how to make 'Give X to Y' mode
- custm save/load window
- keyboard walking
- save game screenshots
short SharpBlade; //Whether the sharpener is a blade or normal.
if (GetCursorMode()==8) {//if open if (SharpBlade==0) {//if blade is not removed Display ("Mark opens the sharpener and removes the blade."); SetInvItemPic(10,92);SetInvItemName(10,"Blade");//Switch to blade SharpBlade=1;return;} else if (SharpBlade==1) {//if blade is removed Speak ("That doesn't open.");}}//unhandled event else if (GetCursorMode()==5) {//else if pick up Speak ("I already have it.");}//unhandled event
if (player.activeinv==10) {// If sharpener/blade if (SharpBlade==1) {//If blade is out sharpener Walk (123,103); AnimateCharacter(MAR,13,15,0);Wait(15); Display ("Mark places the blade in the dispenser."); bladein=1;LoseInventory(10);}//Set it so the blade is in else if(SharpBlade==0){//if blade is still in sharpener unhandled_inv();}}//unhandled event else { unhandled_inv();}//unhandled event
//GlobalInt (42); is the score in integer form. string scorelabel;Ã, //score in string form, for displaying on GUIs. string scoredisplay; //erm, the high score for displaying...I can't really remember... /**////I don't know where to put this:////**/ int scorewrite=FileOpen ("temp.tmp", FILE_WRITE); //I don't understand this whole part (about which filename to specify, copied from manual) if (scorewrite==0) { Ã, Display("The Game could not retreive the requested file."); Ã, } else { Ã, FileWrite (scorewrite, scorelabel); //Writes string 'scorelabel' to the file Ã, FileRead (scorewrite, scoredisplay); //Read the file into a string called scoredisplay Ã, Display ("Your current high score is %s.", scoredisplay); //Displays your score. Ã, FileClose (scorewrite); //Close the file. Ã, }
string inventory; function repeatedly_execute () { if (GetCursorMode()==4) { GetInvName (player.activeinv, inventory); SetLabelText (MAINGUI, 13, "Use %s with @OVERHOTSPOT@", inventory); }
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.171 seconds with 14 queries.