intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Nov 20, 2018 1:44 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Jul 02, 2018 9:23 am 
Offline

Joined: Thu Mar 22, 2018 3:34 pm
Posts: 33
Hi everyone! I created a new action, cheating, and I need to ask the player if he really wants to cheat.
I wrote this:
Code:
A thing can be actived or disabled.

Cheating is an action applying to nothing.
understand "cheat", "cheats" as cheating.
   report cheating:
      say "are you sure you want to activate cheats?";
      if player consents:
         say "cheats actived.";
         now cheats are actived;
      else:
         say "cheats not actived.";


but it gives me this error:
Quote:
The phrase or rule definition 'report cheating' is written using tab indentations to show how its phrases are to be grouped together. But in that case the opening line needs to be on the left margin, not indented.


what's the problem??
thank you in advance! bye!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 02, 2018 10:25 am 
Offline

Joined: Sun Oct 11, 2015 5:09 pm
Posts: 309
"Report cheating" is its own rule, and should not be indented.

Code:
A thing can be actived or disabled.

Cheating is an action applying to nothing.
understand "cheat", "cheats" as cheating.

Report cheating:
   say "are you sure you want to activate cheats?";
   if player consents:
      say "cheats actived.";
      now cheats are actived;
   else:
      say "cheats not actived.";


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jul 02, 2018 3:26 pm 
Offline

Joined: Thu Mar 22, 2018 3:34 pm
Posts: 33
lol it was easier than I tought! Thank you very very much!


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group