Alright, so I am definitely unclear on how to separate this into multiple functions and go from one to the next. Got any examples of this? Thanks again.
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
else if(DanTalk==1)
{
dDan4.Start();
if (dDan4.HasOptionBeenChosen(1))
{
gGui1.Visible=true;
String input = txtUserInput.Text;
Parser.ParseText(input);
if (Parser.Said("window"))
{
cDanielle.Say("xxx.");
cDanielle.Say("xxxxxx");
}
else
{
cDanielle.Say("xxxxxxxxxx");
}
}
Quote from: Crimson Wizard on Fri 27/04/2018 01:06:35...any guides on that? I wasn't able to find anything in the manual about creating new GUIs for text parser/input. Thanks!
You need to create a GUI with text parser item on it, called "txtUserInput".
function cDanielle_Talk()
{
cElle.FaceCharacter(cDanielle);
if (DanTalk==0)
{
dDan1.Start();
DanTalk=1;
}
else if(DanTalk==1)
{
dDan4.Start();
if (dDan4.HasOptionBeenChosen(1))
{
String input = txtUserInput.Text;
Parser.ParseText(input);
if (Parser.Said("window"))
{
cDanielle.Say("xxx");
cDanielle.Say("xxxxx");
}
else
{
cDanielle.Say("xxxxxxx");
}
}
else
{
cDanielle.Say("xxxxxxxx")
}
}
}
Quote from: Crimson Wizard on Sat 21/04/2018 01:13:45Code: ags cElle.Walk(200, 420, eBlock, eAnywhere);
Quote from: Crimson Wizard on Sat 21/04/2018 00:19:33
This way she will keep telling that she needs meds, and walk away from the edge.
int Tried=0;
function room_LeaveLeft()
{
if(player.HasInventory(iCita))
{
player.ChangeRoom(5, 730, 400, eDirectionLeft);
}
else if (Tried == 1)
{
cElle.Walk(200, 420);
}
else
{
cElle.Think("I should probably find and take my meds first.");
Tried=1;
}
}
Quote from: Crimson Wizard on Fri 20/04/2018 23:42:12
What event is this function connected to?
Also, silly question, but did you just wait, or also tried clicking/pressing any key?
function room_LeaveLeft()
{
if(player.HasInventory(iCita))
{
player.ChangeRoom(5, 730, 400, eDirectionLeft);
}
else
{
cElle.Think("I should probably find and take my meds first.");
}
}
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.036 seconds with 18 queries.