Menu

Show posts

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

Messages - Erica McLane

#21
Adventure Related Talk & Chat / Re:FoY Tute
Sat 28/06/2003 10:31:13
Very nice. Very nice.  ;D
#22
Why you have made two posts? One in the beginners forum and one in the Tech forum. You could get answer with one post, there is no need to make two.
#23
General Discussion / Re:sounds
Tue 24/06/2003 07:56:16
Hmm. Thanks. Is it free?
#24
Good idea.   ;)
#25
You have two options for the menu - make the options as hotspots and make them as objects. To light up a button you should use the Mouse over plugin by Sylpher but  it doesn`t work in the latest version of AGS.
#26
You can always suggest this to CJ.
#27
Yeah, it`s possible with a lot of scripting. You have to know very well the File* commands and the GUI* commands in order to do this. You will need more thing, also. I`m giving this to you just as an example.
#28
Can you show the script where RunAGSGame and DisplaySpeech are? It can be an error in the script.
#29
Sometimes something in AGS gots corrupted.
#30
Does somebody know where to find a guide for compiling a Linux distribution, I mean Red Hat 9 or Lycoris?
#31
Try rebooting your computer first.
#32
Chris, you said that you want to release v2.55 WITH the Linux engine, but Shawn is missing. :) Do you know where is he?
#33
Easier way to create the Lucas Arts status line by TK
-----------------------------------------------
Bad link removed by Scummbuddy
----------------------------------------------
Upload of code
-------------------------------------------
I posted this here beacuse those new AGSers who come to ask how to get the LEC statusline to work. The LEC GUI that comes with AGS uses scritp like this:

if (GetLocationType(mouse.x,mouse.y)>0) { // or whatever like that
GetLocationName(mouse.x,mouse.y);
//someting
SetLabelText(0,0,"Walk to...");
}

etc.

But I found an easier way. I dont know how many people have thought of this, and if this is allready posted somewhere in the forum, but anyway:

All the GetThisAt and GetThatName can be replaced with @OVERHOTSPOT@, right?

So, make a new GUI, put it where you want the statusline to be, create a label on it and set the size and position. (In this script the statusline is GUI 0 and the label is object 0.)

Then, put into the global script repeadetly execute function: (add teh stuff beween the line starting "function" and the last })

function repeadetly_execute() {
// the comment line here
if (GetCursorMode()==0) SetLabelText(0,0,"Walk to @OVERHOTSPOT@")
if (GetCursorMode()==1) SetLabelText(0,0,"Look at @OVERHOTSPOT@")
if (GetCursorMode()==2) SetLabelText(0,0,"Interact with @OVERHOTSPOT@")
if (GetCursorMode()==3) SetLabelText(0,0,"Talk to @OVERHOTSPOT@")
if (GetCursorMode()==4) {
string usinginv;
string useinvtxt;
StrCopy (useinvtxt, "Use ");
GetInvName(character[GetPlayerCharacter()].activeinv,usinginv);
StrCat (useinvtxt,usinginv);
StrCat (useinvtxt," with ");
StrCat (useinvtxt,"@OVERHOTSPOT@");
SetLabelText(0,0,useinvtxt);
}
}

Quote:
StrCat (useinvtxt,usinginv);
StrCat (useinvtxt," with ");
StrCat (useinvtxt,"@OVERHOTSPOT@");



Is because when there is no hotspot or char under the mouse, it says "Use XXX with ". This can ofcourse be changed very easy:

StrCat (useinvtxt,usinginv);
StrCat (useinvtxt," with @OVERHOTSPOT@");

Would make it say just the "Use XXX".

Sorry if I cause any trouble to ya all nice moderators, but this just popped into my head and I couldn't hold it all just by myself.

THIS CODE CAN BE USED BY ANYBODY WHO NEEDS, in case it works.
#34
There is no way to highlight a text. You should have a different font and change it where it should be highlighted. (SetNormalFont, SetSpeechFont). You may notice that there is no SetGUIFont script command.
#35
The BlueGUI by RickJ can be useful too. Just search for it in the games page.
#36
Beginners' Technical Questions / Re:death
Mon 26/05/2003 13:37:09
In the times of AC there was such an option provided by the engine - to kill the player. I wonder why Chris removed it.
#37
As far as I know the engine is paused while an animation is running. Check the manual for AnimateCharacterEx or for an option in AnimateCharacter to make the animation non-blocking.
#38
SetLabelText should be put in repeatedly_execute. Put there also your script for removing the GUI during cutscenes.
#39
Why do you people make two threads for one topic...?
#40
OK. Here is it:

<?
include("config.php");
$db = mysql_connect("$host", "$username", "$password");
@mysql_select_db("$databasename", $db);
?>

<form>
<select name="usern">
<?
$query="SELECT * FROM $tablename usern";
$result=mysql_query($query);

$num=mysql_numrows($result);

$i=0;

while ($i < $num) {
$usern=mysql_result($result,$i,"usern");

echo "<option value=\"$usern\">$usern</option>";

++$i;
}
?>
</select>


<input type="submit" value="Submit"><input name="action" type="hidden" value="add">
<input type="reset" value="Clear">



So I want the number to appear when the user clicks the Submit button.
SMF spam blocked by CleanTalk