 |
blaqk Newbie
Joined: 24 Aug 2003 Posts: 2
|
Posted: Sun Aug 24, 2003 9:16 pm
help with Compass |
I am fairly new to zmud. I managed to create a compass. I also want to get it to show only the exits of each room. can anyone assist me on this topic please. [8D]
|
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Mon Aug 25, 2003 2:01 pm |
post your script here I would love to see it.
I will help
I will later go and see If I can do this myself sounds fun. |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Mon Aug 25, 2003 2:54 pm |
#TRIGGER {Exits~: (*)} {#var dir %replace("%1"," ","|");#forall @dir {#if %i=north {#NOOP %btncol(1,cyan,yellow)};#if %i=west {#NOOP %btncol(5,cyan,yellow)}}}
this is just to give you an idea.
I did not know your button positions
I did not know your button colors
I did not know your exit triggger
good luck |
|
|
|
 |
blaqk Newbie
Joined: 24 Aug 2003 Posts: 2
|
Posted: Mon Aug 25, 2003 5:39 pm |
mega,
I hope this is the script you were referring to. I had no exit trigger, and I am using red arrows in each direction. So I hope this helps and Thanks.
#CLASS {System|Compass}
#ALIAS ShowExits {
#call %btnenable(btnn,%ismember(n,%1))
#call %btnenable(btnnw,%ismember(nw,%1))
#call %btnenable(btnne,%ismember(ne,%1))
#call %btnenable(btnw,%ismember(w,%1))
#call %btnenable(btne,%ismember(e,%1))
#call %btnenable(btnsw,%ismember(sw,%1))
#call %btnenable(btns,%ismember(s,%1))
#call %btnenable(btnse,%ismember(se,%1))
#call %btnenable(btnd,%ismember(down,%1))
#call %btnenable(btnu,%ismember(up,%1))
#call %btnenable(btno,%ismember(out,%1))
#call %btnenable(btni,%ismember(in,%1))
}
#BUTTON 1 {} {n} {} {} {} {} {DIRN} {} {} {} {Pos} {2} {20} {} {} {} {} "" {Explore} {North} {btnn}
#BUTTON 3 {} {nw} {} {} {} {} {DIRNW} {Size} {20} {20} {Pos} {2} {0} {} {} {} {} "" {Explore} {Northwest} {btnnw}
#BUTTON 4 {} {ne} {} {} {} {} {DIRNE} {} {} {} {Pos} {3} {40} {} {} {} {} "" {Explore} {Northeast} {btnne}
#BUTTON 5 {} {w} {} {} {} {} {DIRW} {} {} {} {Pos} {27} {0} {} {} {} {} "" {Explore} {West} {btnw}
#BUTTON 6 {} {look} {} {} {} {} {LOOK} {} {} {} {Pos} {27} {20} {} {} {} {} "" {Explore} {Look} {btnLook}
#BUTTON 7 {} {e} {} {} {} {} {DIRE} {} {} {} {Pos} {27} {40} {} {} {} {} "" {Explore} {East} {btne}
#BUTTON 8 {} {sw} {} {} {} {} {DIRSW} {} {} {} {Pos} {51} {0} {} {} {} {} "" {Explore} {Southwest} {btnsw}
#BUTTON 9 {} {s} {} {} {} {} {DIRS} {} {} {} {Pos} {51} {20} {} {} {} {} "" {Explore} {South} {btns}
#BUTTON 10 {} {se} {} {} {} {} {DIRSE} {} {} {} {Pos} {51} {40} {} {} {} {} "" {Explore} {Southeast} {btnse}
#BUTTON 11 {} {up} {} {} {} {} {TRACK} {} {} {} {Pos} {78} {9} {} {} {} {} "" {Explore} {Up} {btnu}
#BUTTON 12 {} {in} {} {} {} {} {STEPINTO} {} {} {} {Pos} {105} {9} {} {} {} {} "" {Explore} {In} {btni}
#BUTTON 13 {} {out} {} {} {} {} {STEPOVER} {} {} {} {Pos} {105} {32} {} {} {} {} "" {Explore} {Out} {btno}
#BUTTON 14 {} {down} {} {} {} {} {STEP2} {} {} {} {Pos} {78} {32} {} {} {} {} "" {Explore} {Down} {btnd}
#CLASS 0 |
|
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Aug 26, 2003 1:14 am |
Thanks that was a fine looking direction pad.
I had a bit of trouble understanding how it works as a compass.
I had to play with the size's of every button to get it to look right
but like I said It looks wonderfull, besides moving you around and taking up space, what does it do?
There are two ways todo what you ask.
1 is to trigger off the exit prompt like I did on my other message
2 is %roomexit form the help files.
I am working on a compass now that will sow you what direcion your going wich direction you came from what exits in the room and a compass with true N floating or something(haven't got this far yet.) |
|
|
|
 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|