1)I have an map obj made, but how would i make it so that when a mob obtained a map, a mini-map of the area the map is for appears in the top left of the screen? I need to know how to make the mini map to.
2) hpow would i make scrools that when obained allowed the mob to see all of the types of the tings on the map the scroll represendted? for example the mob picks up a trap scroll, how would i code it so he can see all the other wise invisible traps in the area? The same for doors and secret walls as well.
Someone please tell me how to do this.
ID:171280
Oct 17 2004, 9:20 am
|
|
Oct 17 2004, 12:10 pm
|
|
I'm not exactly sure how the invisibility var works but you could try making traps have an invisibility of 1 and have it so when you pick up a trap scroll the usr gets their invisiblity var set to 1 also.
|
Mini maps are pretty complicated to make and usually very laggy aswell. To get things on the top right though, look of the screen_loc variable.
|
The mini map would have to be a HUD. Look it up. The only other way I can think about it working would be to pop up an html page when you pick up the scroll.
For the invisibility of objects, check the help for invisibility var (atom). The only catch is that there are layers of invisiblity. You may also do a running check (a spawned proc) of objs in view(8)(or what ever your map size is). Something like: mob Now don't copy paste this, I'm not sure what vars/obj/etc. you're using, this is just a way to look at it. |