Point & Click Development Kit Forum Index Point & Click Development Kit
The Forum for the PaC-DK Adventure Creator
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Frage wegen Charakter

 
Post new topic   Reply to topic    Point & Click Development Kit Forum Index -> Probleme und Bugs
View previous topic :: View next topic  
Author Message
Henni
PaC-DK Newby


Joined: 14 Jul 2010
Posts: 13

PostPosted: Mon Jul 19, 2010 10:03 pm    Post subject: Frage wegen Charakter Reply with quote

Hallo
ich hab mal wieder ne frage und zwar
ich bin dabei ein speil zu erstellen ,der char ist auch so gut wie fertig nur nen namen hat er noch nicht..
da ist mir die idee gekommen das man das ja vllt. so machen könnte das am anfang des speilk man gefragt wird wie man heissen will und man dann nen namen eingibt und so heisstb der char dann auch im spiel.
natürlcih würde daNN bei der sprach ausgabe nie ein name vorkommen können soder nur sowas wie ;;Mein freund;; und so aber mal generell gefragt wäre sowas möglich??
LG Henni
Back to top
View user's profile Send private message
Henni
PaC-DK Newby


Joined: 14 Jul 2010
Posts: 13

PostPosted: Tue Jul 20, 2010 10:13 am    Post subject: Reply with quote

So habe mir nochmal gedanken gemacht
und bin darauf gekommen das man das eingegebene in Variablen speichern kann soweit so gut
aber ist es mäglich ein Eingabefeld zu machen ??
Back to top
View user's profile Send private message
Baelavay
PaC-DK God


Joined: 04 Jun 2006
Posts: 1129

PostPosted: Tue Jul 20, 2010 2:12 pm    Post subject: Reply with quote

Ja, mithilfe des Befehls entertext(), dessen Verwendung im Handbuch erklärt ist.
_________________

Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
japanhonk
Adventure Enthusiast


Joined: 05 Feb 2009
Posts: 202
Location: NRW

PostPosted: Tue Jul 20, 2010 3:23 pm    Post subject: Reply with quote

Und sollte der Spieler Nichts eingeben, fragst du den String ab, ob er einen Inhalt hat : If_string (Name;empty).... Beachte, dass Empty eine vordefinierte Variable ist, du solltest also nicht selbst eine Variable namens empty verwenden.
"Empty" würde z.B im String stehen, wenn der Spieler keinen Namen eingibt
und return drückt.

Denke dran, Texte werden nicht in Nummern Variablen , sondern mit Strings gespeichert ( setstring....), sonst klappt das nicht.
_________________
Woher soll ich wissen, was ich denke, bevor ich lese, was ich schreibe ?
----------------------------------------------------------
Star Trek FYNE unter :
http://www.fynegames.homepage.t-online.de
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Point & Click Development Kit Forum Index -> Probleme und Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group