I so want to be here for this in real time but have no idea how this whole thing happens.
Sorry if I missed the newbie instructions for how to join...
Sorry if I missed the newbie instructions for how to join...
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 MenuQuote from: Adeel S. Ahmed on Tue 25/02/2014 23:48:16
Its just that I saw Mandle apologizing, so I thought why on the Earth is he apologizing and what for?
Quote from: TFeldt on Fri 21/02/2014 10:44:21
Been a crazy hectic week but I managed to squeeze in Ancient aliens, the LP can be found in the following playlist https://www.youtube.com/playlist?list=PLtrHR3af4aQ28vzAW-zZANOk3xix9hfZy
Quote from: Khris on Sun 23/02/2014 02:47:07
In order to check the number, compare the Textbox content to a number.Code: ags if (TextBox1.Text.compareTo("5551234") == 0) Display("Calling Hollywood...");
As for how to set up dialling: GUIControls have IDs conveniently starting at 0.
If you create the buttons so that each number on the button corresponds to its ID, you can use the same function to handle each button's OnClick event.
Just add this to the GlobalScript:Code: ags function Dial(GUIControl *control, MouseButton button) { if (button != eMouseLeft) return; // only react to left clicks TextBox1.Text = TextBox1.Text.AppendChar(control.ID + 48); // ascii code for 0: 48, 1: 49, etc }
Then enter "Dial" into each number button's OnClick event field.
The button itself is passed to the function (*control), and we read its ID to determine which one was clicked.
Note that .AppendChar() returns the new String and doesn't change the supplied String. That's why your code didn't work.
Quote from: Eric on Sun 23/02/2014 05:07:06Quote from: Ryan Timothy on Sun 23/02/2014 04:58:41both are very dreamy with such a distorted perspective of the world
Maybe dystopian fiction is just not your thing?
Quote from: Ryan Timothy on Sun 23/02/2014 04:58:41
both are very dreamy with such a distorted perspective of the world.
Quote from: Khris on Sun 23/02/2014 03:58:20
Are you saying you can't find a command you are already using in the manual?
Quote from: selmiak on Sun 23/02/2014 02:14:23
you should delete the sequence and the numberspushed counter when a wrong button is pushed or you can push one correct button, thousands of wrong buttons and the again a button in order and so on.
Quote from: Joey on Sun 23/02/2014 02:05:22
Thanks a lot I'll try this.
Quote from: selmiak on Sun 23/02/2014 01:17:54
So Terry Gilliam made a new film. And it's in cinemas, not on kickstarter \o/
Qohen Leth is an eccentric and reclusive computer genius who lives in an Orwellian corporate world and suffers from existential angst. He waits for a phone call explaining the meaning of life. Under the instruction of a shadowy figure known only as "Management", Qohen works to solve the "Zero Theorem", a mathematical formula derived from Big Crunch theory.
The fate of the universe as a black hole singularity is purported to show that life has no purpose. Qohen's work in the burnt-out chapel that serves as his home is interrupted by visits from Bainsley, a seductive woman, and Bob, the teenage son of Management.
funkey trailer:
http://www.youtube.com/watch?v=RyMSRRNHRos
Quote from: Joey on Sun 23/02/2014 01:17:57
I have created a GUI with numbers 0-9, a textbox to display the number, a call button, and an exit button. I need help with creating a script to check the text inside of the textbox to see if the right number was dialed. My script to use buttons to enter the code in also stopped working but I didn't change anything. Here is an example of script for the buttonsCode: ags function PhoneButton2_OnClick(GUIControl *control, MouseButton button) { TextBox1.Text.AppendChar('2'); }
Anyway, what I really need help on is creating a script that checks if the number entered in is correct and then starts a dialog when the call button is pressed.
function PhoneButton2_OnClick(GUIControl *control, MouseButton button)
{
TextBox1.Text.AppendChar('2');
if (PhoneNumberSequence == 1)
{
PhoneNumberSequence ++;
}
}
function PhoneButton3_OnClick(GUIControl *control, MouseButton button)
{
TextBox1.Text.AppendChar('3');
if (PhoneNumberSequence == 2)
{
PhoneNumberSequence ++;
}
}
function PhoneButton4_OnClick(GUIControl *control, MouseButton button)
{
TextBox1.Text.AppendChar('4');
if (PhoneNumberSequence == 3)
{
PhoneNumberSequence = 1;
PhoneDialogueStart;
}
}
Quote from: qptain Nemo on Sat 22/02/2014 17:11:04
Well, if you want on-topic discussion...
I mean no disrespect to Mandle, the post is clearly well-intended, but to be honest I find the idea of being mentioned on silly Wikipedia an honour quite funny. And not only because I have a grudge against Wikipedia for their methods, the deletion of the page for Ben Jordan series and general uselessness and inadequacy in any specific area of knowledge beyond the very basic level.
But also because... I mean being mentioned on Wikipedia can only mean one of the following two things:
- some random guy or gal who likes you/your stuff managed to sneak a mention of you/your stuff past the pedantic fun-hating wiki moderators and they weren't vigilant enough to spot and delete it... yet
- it's actually mentioned so much outside of wikipedia that it's actually "notable" by Wikipedia standards, which in turns means it's already so well-known that a mention on Wikipedia AS WELL adds essentially nothing
Quote from: Technocrat on Mon 17/02/2014 13:41:43
It's not the hyphen, I'm afraid - it appears in every piece of spoken text when the portraits are being used.
Thanks for the grammar, but in this case it's just how the character speaks - I'm aware of how it's supposed to be!
Quote from: TFeldt on Mon 17/02/2014 13:20:35
Still somewhat flabbergasted that I got more than single reply.
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 1.709 seconds with 15 queries.