Okay, ive tryed everything i know of (its not much but hey XD) and i still cant get this to work. Im trying to Have a new verbpanel thing appear when i get into my vehicle (using DblClick() ), so i DblClick() on the "spaceship" and a new verb panel appears with new verbs on it to use on the "spaceship" . Ive tryed using:
src.verbs+=typesof(blah/blah/blah) and
usr.verbs+=typesof(blah/blah/blah)
set hidden =1 until i DblClick() on it,
aswell as some other stuff
I still cant get this to work properly because the verbs never appear =(
So if anyone knows How to Make a verbPanel with new verbs appear when i DblClick() on something, help me! XD
Thanks
P.S. if u need me to clear up my really bad explanation, just ask =P, and if ive posted this in the wrong place, dont eat me, i do it all the time XD, =P
ID:162121
Feb 23 2008, 4:29 am
|
|
In response to Loduwijk
|
|
This still isnt fully working =\, i believe its the way im trying to use it, when i base my code on what you have there, it works fine for what the code does(if you know what i mean). However the way im using it, is when you DblClick() the ship, You control the ship, but in order for this to happen your mob must still exist on the map somewhere. previously i had the mob send to an isolated square in the map, where no players could see or get to. And the player that DblClick() the ship to begin with had their client.eye=src, so they could fly it. They could control it and move around with it using the arrow keys, but i could never get the verbs such as CloakShip() and FireWeapons() to appear so that they could be used aswell so that the players could participate in space battles etc...
Thats quite alot of gibberish, so i hope you understand where im going with this XD |
In response to Gamer1
|
|
This worked for me, I think this is what you are trying to get to, then just plug in your verbs, and plug in your procedures.
mob/Spaceship |
In response to Gamer1
|
|
Gamer1 wrote:
previously i had the mob send to an isolated square in the map, where no players could see or get to. Move them into the ship. |
In response to Garthor
|
|
Garthor wrote:
Gamer1 wrote: When i move them into the ship, the ship wont budge....it just sits there....however, i do get the verbs when i move them in... Sort one problem, and another rises =\ I'll need to play around with the code a little more, Thanks everyone =) |
In response to Gamer1
|
|
Then you've messed up how you're controlling the ship, because that really should not affect anything unless if you're doing it in the most roundabout way imaginable.
|
If you are doing this in DblClick(), usr should be the player's mob and src will be the object you clicked (the spaceship). This is assuming you're using the spaceship's DblClick() and not client/DblClick(), which I would hope is the case.
If you're doing this from a function called directly by the spaceship's DblClick() then usr should still be the mob, as functions tend to inherit their usr from the function that called them.
If it were me, I would probably try to give the spaceship verbs that are accessible to whomever is in it. Do you place the player's mob physically into the spaceship, as in, in its contents? If so, you can "set src = usr.loc" for the verb if it's owned by the spaceship.