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 - fiaschetta

#21
Quote from: R4L on Mon 06/11/2006 03:44:45
Try this:

if ((oObject.Visible == false) && (oObject2.Visible == false)){
DisplaySpeech(PG,"OK");
}

oObject would be the script name of the object that has to be off, so if the object was named One, and the other was Two, then the script would be this:

if ((oOne.Visible == false) && (oTwo.Visible == false)){
DisplaySpeech(PG,"OK");
}

This is what you mean right?

Ok, go!
But, i put the script in "Reapatedly execute"... and my pg says always "OK" but i want that he says "OK"  and stop...
#22
I want that my characheter says "Hello" when two object in the room are OFF..

my script is:

if (Objectoff (0)) {
if (Objectoff (1)) {
Displayspeech (PG,"OK");
}
}

I put this script in "Repatedly Execute" but when i play whit object on, my PG say always "HELLO"....
What is my error?
#23
I have a character in the room that he always be in movement, therefore in the script of the room: 
cPg.animate (0,2,erepeat); 
 
But, when i talk with he, when the dialog end, the character is static...  doesn't animate.. 
Why?
#24
Ok. gooooooo
#25
Ok, but for enter in room2 from room3 i have two possibility (two doors);
If i enter in room2 from door1 the char. says "HELLO" but if i enter from door2 the char. says "Friend".

For now, my scrypt is:

if (character[TEQ].PreviousRoom == 18){
DisplaySpeech (TEQ,"Ciao");
}

Then don't exist the destinction between door1 and door2..
How do I do that? ( for Khris)
#26
I have 3 rooms 
One of them is connected with the others two (for example, room2) 
If i enter in room2 from room 1, the character says "Hi"   
if i enter in room 2 from room 3, the character says "Friend".. but the room3 have two possibility for enter in room 2 (for example, door1 and door2)..
Then, if i enter in room2 from room3 by door1 the char. says "friend one", but if i enter in room2 from room3 by door2 the char. says "freind two"...
How i do?
#27
When i look a inventory item i want that the charcter[EGO] run an animation in view10 then he returned to his normal view.
How i do?
#28
Well.

I owe taking an object..Ã, 
But if the charcterBOS is not in view 4,Ã,  I can't.Ã, 
However, if i interact with a hotspot, the characterBOS goes in view 4 and I can taking the object.Ã, 
But i can taking the object only in 20seconds because after 20seconds characterBOS returned on his original view (for example 3).

Pratically, I would  that after intercated with hotspot, for 20 second the charcaterbos change view in 4 and after 20second returneds as before
#29
Well 
 
I interact with a hotspot, after the BOS changes View and I can pick up an object. 
 
Then the timer start only after which i interact with hotspot.. 
 
however, now I try as you explain
#30
my problem is that i need of the timer only use a object...
Pratically, i interact with an hotspost and the charcter(bos) must changeview(4)... while he is in view 4 i can take a object...
#31
Ok,
my script:
Code: ags
SetTimer (1,20);
ChangeCharacterView (BOS,11);
if (IsTimerExpired(1) == 1)Ã,  { //
Ã,  ChangeCharacterView (BOS,8); }


But the charcacter(bos) never changeview( 8 ).. why?
#32
Well, my script is:

Code: ags
ChangeCharacterView (BOS,8);
SetTimer (20,20);
ChangeCharacterView (BOS,4);


but characterView become only 4... why?

EDIT: No need to quote the whole previous post.
#33
Well.
If a secondary character is in view 4 then i can do a determined action.. 
However the secondary character must be in view 4 for 50 seconds then he returned in view 3 and i can't do the action... 

My script is:

charcte[re].changeview[4];
Wait 60

but with "wait" i can't move the cursor of mouse for must the action.
#34
Beginners' Technical Questions / Option on
Sun 30/04/2006 03:49:33
I have a dialogue whit 5 option..
Option 4 is OFF but i want that if i look a hotspost in a room, the option 4 become ON..
How i do?
#35
Ok, but when i test game go out this error:

objecton is not a pubblic member of 'otheroom'
#36
Well.

In script of dialog:

@1
EGO: Ciao!
run-script 2
stop

then in global script (i used the OTHEROOM MODULE):

function dialog_request (2)  \lbraceraw
OtherRoom.ObjectOn (3,3);
\rbraceraw
{


But when i test game have an error of: ERROR : Parse error at '2'

Why?
#37
Ok.
You have understand the problem and you have, partly, resolved it.

Why the animation don't stop?
I want that the animation take place only one time then the charchater return to view 1.
How i do?

Tanks for the great help!
#38
I used the characheter with resolution 19x20.. 
I created an animation of the character wich launch an rock and therefore i have put the dimension for 80x20. 
When I want the character makes the animation, I insert:   

SetcharcaterIdle (ROG, view, delay) 
 
But if the charcater was found in coordinates x,y (15,30) 
 
when the animation start he moves to every sprite... (i.e: (14.30) - (13,30) )
 
How do I do? 
#39
Beginners' Technical Questions / Option on
Sat 29/04/2006 03:26:36
I want that a dialogoption intially invisible become visible after i look at object
How i do?
#40
I stay in room 4... I want that after a dialog with a charcather in room 4, the object (3) of the room 2 become visible..
How i do?
SMF spam blocked by CleanTalk