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

Topics - Zipofthe95

#1
I question my sanity at this point.

So. In global script (.asc) I added a function that does a thing. In header (.ash) I've stated import function (it's name)... now after name it says (parameters). After that if I'm reading the manual correctly I call the function in the room by just saying function name (parameter value).

The gist is this. Whenever an object is clicked the function is supposed to fire off. Yet, whatever parameter I add it says "unresolved import" (I say this because (for now at least) parameter doesn't matter (in manual it's animation number, I don't need anything that specific) I just need it to run). What parameter should I use or at least where should I use it (I mean, room or global script(s))?

Thanks ahead.
#2
Well that tells you bugger all.

Anyway, here's the gist. Let's say I have three four-button panels that use the same gui, and let's say the number 1 in each panel toggles the visibility of an object in a room. How would I go about it? I made a "panel gui" with "add gui button" but on click button sends me to global script. Global script doesn't work with local room objects (I just tried. I made an object 1 that controls that object within a room, works. On global script, it doesn't know what that object is). So essentially, is there a way to "localise" what a gui button does? And if that is possible, can I make the script carry over to other rooms? Let's say I have room 2 that's exactly the same room as room 1 (and panels use the same "panel gui") but while "button 1" there would control... a chair, room two "button 1" would control... a mug on the table. Hope I made myself clear.

P.S. On a side note. Can I make it that when I hover over a button a text appears to describe what it does. For example, if I have a "hand" button and mouse hovers over it to say in gui box "your hands "As efficent as they are deadly"?

Cheers!
SMF spam blocked by CleanTalk