Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Architecture : Moving wall not moving one tile per turn (Fixed!)
New Topic New Poll Post Reply
Poster Message
Rens2Sea
Level: Roachling
Rank Points: 13
Registered: 06-07-2005
IP: Logged
icon Moving wall not moving one tile per turn (+1)  
I just spend the last 2 nights making a moving player-killing wall, was quite a challenge. Had to remove the user made variable to support multiple of these walls by using _MyScriptW.
It's not fancy, but it works.

Anyways, the problem i'm having is this; The further away the wall moves from the left most position, the longer it takes before it does another step.
I have no idea how or why this happens.
Also tried making a moving wall with the Move and MoveTo commands but that failed miserably :?

Cookies for the one who can help me! :thumbsup

(Also, hi! I'm Rens, been lurking on the forums for quite some while, played the earlier Drods also, and this is my very first post here :blush)

Click here to view the secret text


Edit: It's fixed now:
Click here to view the secret text


[Last edited by Rens2Sea at 09-30-2008 08:16 PM]
09-29-2008 at 09:52 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
RoboBob3000
Level: Smitemaster
Avatar
Rank Points: 1978
Registered: 10-23-2003
IP: Logged
icon Re: Moving wall not moving one tile per turn (0)  
I'm inexperienced with the new scripting commands, but my initial guess (based on what I've read so far) is that you need to reset the MyScript variables to their default value at some point or else you can expect bizarre results. Check the docs for elaboration on what I'm talking about.

Welcome! I hope your scripting ambition takes you far!

____________________________
http://beepsandbloops.wordpress.com/
09-29-2008 at 10:04 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged
icon Re: Moving wall not moving one tile per turn (+1)  
You are using _MyScriptX. Let me quote myself:
Wait:
_MyScriptX - Affects the amount of turns to wait (0-Infinity)
And also,
Build:
_MyScriptW - Width of the build range(0-15 - if negative nothing is built)
When width of rectangle of build is 1+_MyScriptW (So when it is 1 it builds rectangle 2x1)
Besides why are you using _MyScriptX and W? Can't you use _MyAtk, def,rep,gold,color,orientation?

Anyway, you should always reset _MyScriptX before using Wait.
For more info I suggest you *selfish advertisement* the Architectopedia you can find in the Architecture board ^^

____________________________
My website | Facebook | Twitter
09-30-2008 at 05:33 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
Rens2Sea
Level: Roachling
Rank Points: 13
Registered: 06-07-2005
IP: Logged
icon Re: Moving wall not moving one tile per turn (+2)  
Totally forgot about _MyATK etc. It works now.
Thanks for the help guys. Cookies for all! :P
And good job with the Architectopedia Skell!

Here is the final script:
Click here to view the secret text
09-30-2008 at 08:14 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged
icon Re: Moving wall not moving one tile per turn (0)  
You are welcome. Besides of that, quite nice script :).

____________________________
My website | Facebook | Twitter
09-30-2008 at 08:46 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Architecture : Moving wall not moving one tile per turn (Fixed!)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.