I'd love to see these two events in a future version of UOX3.
onMount(pMounter, pMounted)
Attached to rideable creatures to do effects.
onTime(time)
Would run when time is reached.
Two event suggestions
-
Maarc
- Developer
- Posts: 576
- Joined: Sat Mar 27, 2004 6:22 am
- Location: Fleet, UK
- Has thanked: 0
- Been thanked: 0
- Contact:
You wouldn't need an onTime event if you had an onMountStatus( on/off ), as you could create a timer loop from within that, if you really wanted to.
There might be a way of doing what you want anyway.... create a script for mountable NPCs, there might be a way to override the onUse event (or hook up the plumbing for it) so that would become the onUse event. You'd have to take care of the mounting responsibilities. You'd have to attach an unmount script to the created mount (which is an item, not character), and override it's onUse script to do the switcheroo again.
There might be a way of doing what you want anyway.... create a script for mountable NPCs, there might be a way to override the onUse event (or hook up the plumbing for it) so that would become the onUse event. You'd have to take care of the mounting responsibilities. You'd have to attach an unmount script to the created mount (which is an item, not character), and override it's onUse script to do the switcheroo again.
-
Maarc
- Developer
- Posts: 576
- Joined: Sat Mar 27, 2004 6:22 am
- Location: Fleet, UK
- Has thanked: 0
- Been thanked: 0
- Contact:
I had the thought that the two of them were related, I didn't see a difference.
However, I still don't see the need for an onTime event like you suggest. You could easily achieve that through using a StartTimer from within another event which would set it all off (eg from onLogin for an PC). Ultimately, you're still having to start the onTime event somehow (we can't magically divine the end time from nowhere), so all the functionality already exists.
However, I still don't see the need for an onTime event like you suggest. You could easily achieve that through using a StartTimer from within another event which would set it all off (eg from onLogin for an PC). Ultimately, you're still having to start the onTime event somehow (we can't magically divine the end time from nowhere), so all the functionality already exists.