The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom mount issue I cannot figure out.
Author Message
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #1
Information Custom mount issue I cannot figure out.
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.

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
02-28-2013 04:48 PM
Find all posts by this user Like Post Quote this message in a reply
Crusader
Master
**

Posts: 254
Likes Given: 7
Likes Received: 19 in 12 posts
Joined: Apr 2012
Reputation: 6

Erehwon New Hera

Post: #2
RE: Custom mount issue I cannot figure out.
http://forum.spherecommunity.net/Thread-...51#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.
(This post was last modified: 02-28-2013 07:11 PM by Crusader.)
02-28-2013 07:05 PM
Find all posts by this user Like Post Quote this message in a reply
Murmur
Apprentice
*

Posts: 33
Likes Given: 3
Likes Received: 2 in 2 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: Custom mount issue I cannot figure out.
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.

*you glance to your left to a region you just surveyed... you glimpse a magical being, more shadow than substance, caught midway in transformation... the figure smiles, the corners of his mouth jut upwards slightly on the edges, suddenly stretched to a length not at all human...*
03-01-2013 03:48 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)