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
Create a moving item
Author Message
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #1
Create a moving item
Hey there all!

Anyone know how to go about making an item that when created, it moves one space at a time in a direction then removes itself? trying to make good use of the boulder trap Tongue
10-16-2014 10:25 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Create a moving item
Place it on ground and use TIMERD and @TIMER to do what you want.

TIMERD 1
ON=@TIMER
MOVE ...
TIMERD 1

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
10-16-2014 11:45 PM
Find all posts by this user Like Post Quote this message in a reply
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #3
RE: Create a moving item
Brilliant! thank you very much Smile

also, for those who wants to use this, i'll post one of them for the world Big Grin

[ITEMDEF i_boulder_1]
ID=i_trap_boulder
NAME=boulder trap
TYPE=t_normal
CATEGORY=Funhouse
SUBSECTION=Traps
DESCRIPTION=Boulder Trap 1

ON=@CREATE
ATTR=010
TIMERD 1

ON=@TIMER
IF (<MORE1>=60) ///Number of spaces it moves
REMOVE
RETURN 1 ///This must be here to stop the sphere decay errors
ELSE
MOVE -1 0 /// Directions North = 0 1 East = 1 0 South = 0 -1 West = -1 0
MORE1=<more1>+1
TIMERD 1
RETURN 1 ///This must be here to stop the sphere decay errors
ENDIF

ON=@STEP
SRC.DAMAGE=250
10-17-2014 07:13 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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