SphereCommunity
Custom mount issue I cannot figure out. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Custom mount issue I cannot figure out. (/Thread-Custom-mount-issue-I-cannot-figure-out)



Custom mount issue I cannot figure out. - Murmur - 02-28-2013 04:48 PM

Hello everyone, hail, and well met.

Trying to figure something out, I'm really close to having this finished.

I've seen a few posts about making custom mounts, but none of them are definitive and complete.

I figured I'll post everything I've done so far, and I'm pretty sure this is pretty simple and someone will fill in the blanks for me, then I'll make sure I make a complete tutorial on how to create custom mounts for new people like me.

Here is the item I created:

[ITEMDEF 03ffc]
//?
DEFNAME=i_mt_stag
TYPE=T_EQ_HORSE
LAYER=layer_horse
TDATA3=c_stag

It's sitting in its own .scp file.

I added this line below [DEFNAME mount_items] in sphere_defs.scp:

mount_0xea 03ffc // Stag

I used mulpatcher, and put 0xea as the AnimID in the 0x3ffc tiledata.

Ok, so you probably already know what I'm going to say, but I type .add i_mt_stag and it creates an unknown tile on the ground, I double click the tile and I mount the stag.

I can dismount the stag and remount the stag just fine.

The question I have is, first, how do I make it so that when I create i_mt_stag, I get a miniature stag item, like an ethereal, then double click it to mount it, then when I dismount it, it goes back to a miniature stag item in my pack?

I've accumulated hundreds of scripts over the last few days, and I'm really having trouble understanding how to get this to work.

It seems like everyone's rendition of ethereals is different, and the tutorials on this site, while helpful in many ways, does not talk about this stuff.

I've noticed that there isn't a lot of documentation on teaching people how to use this script language, and I'm going to do everything I can to start documenting every script I make, in a step by step fashion assuming whoever is reading it knows absolutely nothing about the syntax, so that we can keep sphere alive and well for decades to come.

Thanks for any advice you share with me.


RE: Custom mount issue I cannot figure out. - Crusader - 02-28-2013 07:05 PM

http://forum.spherecommunity.net/Thread-How-to-New-Rides?pid=8651#pid8651


U don't need to do that item 03ffc...look at my tutorial Tongue

If u do like i wrote, u can just spawn a stag, dclick on it, and mount it.

If u want to do a figurine pet of it, u have to add an event for the rideable animals that states

ON=@DClick
IF (<SRC.ISGM>)
PACK
ENDIF
RETURN 1

and that's all Big Grin but u are not gonna ride it.. coz everytime u dclick u pack it. U can also use directly the pack function to make the figurine pet of it.


RE: Custom mount issue I cannot figure out. - Murmur - 03-01-2013 03:48 AM

Thanks Crusader, I'll play with that code.

I think it might help to explain what I'm trying to do.

Your tutorial looks good for if I wanted any stag to be mounted, however, I want these to be rare, so I wanted to have it in an ethereal style.