Location Specials
Author | Topic: Location Specials |
---|---|
The Establishment
Member # 6
|
written Saturday, June 30 2007 07:13
Profile
It turns out the run_special function passes a location of the special being called (special location, item user location, monster that triggered special location) as one of its arguments. I've noticed that in a few places, the engine simply passes a null location (0,0), but really this field is not used. I'm wondering if we should make use of this feature, and what the best way to be to use it would be. I've come up with a few options: 1) A new node that puts the x and y coordinates into two different flags which can be referenced with a pointer. Somewhat cumbersome but highly flexible. 2) Reserved "pointers", say -10 and -11 that when the field has this value, it replaces it with the x and y coordinates respectively. 3) Node specific defaults. Whereever a location is requested, -1,-1 will be replaced by the appropriate location of the special. What are people's thoughts on this matter? -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Shock Trooper
Member # 10488
|
written Friday, October 19 2007 17:38
Profile
I resurrected this three-month old thread because I felt it was a good idea that had gone unnoticed. Does anyone else have thoughts on the matter? I think I like option 3 best, but option 2 would be my second choice. Posts: 334 | Registered: Friday, September 14 2007 07:00 |