hi
i'm learning how use puppet, but the most documents in german....google translate sometimes can't help me...
so i have some questions about the tutorial documents on bsw wiki
http://www.brettspielwelt.de/Wiki/jsp/Wiki?Puppets%20-%20Tutorial%20and%20Example&highlight=Puppets perhaps for grammar error
some doubt in that passage:
PUPPET Empfangsdame
LOGIN: " beginnt ihre Arbeit."
LOGOUT: " hat Feierabend."
APPEAR: " taucht an der Rezeption auf."
DISAPPEAR: " verschwindet unter der dem Tresen."
INFO: "Ich begrüße was das Zeug hält."
ACTION start
WHEN APPEAR * DO gruss
END
ACTION gruss
GETINFO [WHO]
IF NOT EXISTS PUPPET
ist die Variable überhaupt belegt? RETURN
andernfalls wird die ACTION gruss abgebrochen IF NOT [PUPPET] # ein Puppet wird nicht begrüßtBEGIN
IF [CITYNR] == 4
jemand aus OldFolksTown (C4)? DO OFT[RND2] # zufällige Begrüßung für OFTlerELSE
DO FREMD[RND2]
zufällige Begrüßung für Fremde END
END
ACTION OFT0
>> Guten Tag [TITEL] [WHO]! Schön sie zu sehen!
END
ACTION OFT1
>> [TITEL] [WHO], es ist immer eine Freude sie zu begrüßen!
END
ACTION FREMD0
>> Willkommen, [TITEL] [WHO]. Ich wünsche ihnen einen angenehmen Aufenthalt.
END
ACTION FREMD1
>> [TITEL] [WHO] aus [CITY], Was verschafft uns die Ehre?
END
PUPPETEND
1)don't know what is the right text for puppet...perhaps so?
ACTION gruss
GETINFO [WHO]
IF NOT EXISTS PUPPET
RETURN
BEGIN
IF [CITYNR] == 4
DO OFT[RND2]
ELSE
......
2)and what's the right meaning of:
ist die Variable überhaupt belegt? RETURN
andernfalls wird die ACTION gruss abgebrochen IF NOT [PUPPET] # ein Puppet wird nicht begrüßt
3)i no sure about he choose IF NOT EXISTS instead IF EXISTS
4)why need double == ? only one "=" not enough?
BEGIN
IF [CITYNR] == 4
thx for the help
greets