yeah, the heading doesnt make sense, simple & complicated??? yeaaah whatever , anyhooo...
I have a ship system (starship not sea ship) in my game, and im finding it very hard to make it do things lol.
First off: VERBS
it allows the usr to control the ship (using usr.client.eye= whatever, and usr.client.perspective = whatever) and im trying to give the usr verbs while controlling this ship.
its not happening for me, ive tryed adding verbs to the ship itself, giving verbs to the usr through a proc, and having the verbs on a control panel and when within one tile of it you get them (they dissappeared once i had control of the ship =S)My question is is there another, easier, simpler way of giving the verbs?
Secondly: PROCS
I have an idea, but not really sure how to go about it, i am trying to make a proc that checks the ships z and then works out what that z (i.e planet) is. It would go like so:
if(z==1)
src.planet="moon"
or something daft like that, then a seperate proc (or even the same one, but im not sure how that would work) would find what planet its on, and teleport (or Move) the ship to a turf tagged by that planets name.
Also a proc that works in reverse, by finding which planet the src belongs to if its on a turf tagged "moon" or something.
Lastly but not Leastly: A.I.
I have searched the forum for posts etc related to an A.I system. Found some useful information that allowed me to create a mob that wandered about but it never really did much else. i modified the code millions of times (one time it even made the A.I. rush towards you and it looked like they were doing something your dog might do to your leg XD)Moving on... i have the procs etc for getting the mob to walk in the direction of the usr or another mob (using walk_to() inside a proc called checkarea() ) but when i used that proc, it only ever checked the area once before going back to uselessly wandering about.
How would i go about putting it in a sort of loop? (im not very good with creating loops)
Now that youve trailed throught the millions of squiggles known as "letters" and "words" on your screen, im not asking for you to give me mountains of code for me to copy paste into my game, wheres the fun in that? I would like for you to point me in the right direction, point me to other posts, examples, references etc.
If you could help me with these problems i'll be on my way to having the 1st version of my game completed =D
(P.S sorry for the bad spelling, english IS my native language, im just to lazy to trawl through all that correcting myself, hehe)
ID:161864
Mar 23 2008, 6:45 am
|
|
Mar 23 2008, 6:49 am
|
|
Ha, your stooopid XD
|