Menu

Show posts

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 Menu

Topics - Arcanius

#1
Back with another question...

I'm wondering how to execute a different dialog the second time around, I thought that using a variable would be the best idea, so I have
"
9 function hGuard_Talk()
10 if (myCounter1 == 0)
11 {
12     dGuard.Start();
13 }
14 if (myCounter1 >= 1)
15 {
16     dGuardc.Start();
"
When i try to run the game, it tells me

Failed to save room room18.crm; details below
room18.asc(9): Error (line 9): Expected '{'

If i put brackets on line 9 it says "Unexpected "{""
if I put the "if (mycounter1 == 0) in brackets, it says that mycounter1 is an undefined symbol

EDIT: Never Mind, resolved that problem, by doing

"function hGuard_Talk()
{if (myCounter1 == 0)

    dGuard.Start();
   
    if (myCounter1 >= 1)

dGuardc.Start();
}"



#2
Hi there, I'm making a game, and at one part of it, I have Ego getting quizzed by a character. I want to make it so that if Ego gets the right answer, he is taken to another room....

@1
Gregory: "That's not correct, sorry, the people then took baths very rarely, only one or two every year!"
stop
@2
Gregory: "That's correct, I'll take you to William shortly"
//Teleport EGO to room 18
@3
Gregory: "That's not correct, go find out, and I'll quiz you again later on."
stop
@4
Gregory: "You got very close to seeing William again, try to find out, and I'll gladly quiz you again"
stop

The quiz is about Elizabethan times and Shakespeare  ;D

Is there any way that i could do this?
SMF spam blocked by CleanTalk