Using conditions and variables is very basic programming, that's why is has not been mentioned much

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 Menuplayer.Walk(160, 135, eBlock);
function unhandled_event(int what, int type) {
if (what == 1) // hotspots
{
if (type == 1) // Look at hotspot
{
}
else if (type == 2) // Interact with hotspot
{
}
...
// setting the variables at game start
bool TaskCompleted[10];
for (int i = 0; i < 10; i ++)
{
TaskCompleted[i] = false;
}
// picking a random task that is still available
r = Random(9);
while (TaskCompleted[r]) r = Random(9);
if (type == 1) // look
{
if (player.Room != 14) {
player.Say("It looks as expected.");
}
}
Quote from: Hobbes on Sat 29/05/2021 06:56:06
1. I have multiple player characters. So a Character.ChangeRoom & Character.ChangeView won't work, since the map screen is in the menubar GUI and might be used by different Characters at any time.
2. With the map screen being in the menubar, it's accessible from any room at any time. So if you're on the map, pressing "Exit"... there's no Character.ChangeRoom(PreviousRoom, previousX,previousY) function that I can see.
Quote from: bx83 on Mon 24/05/2021 15:28:20
I don't know why anyone would need more than.... 1 save game (for an adventure game)... but each to his own.
if (diff > -5 && diff < 5) dispMoney = realMoney;
Quote
I found what the error was: I put the function to show the money on the label on repeatedly_execute and not on repeatedly_execute_always.
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.080 seconds with 17 queries.