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!
(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
)
Click here to view the secret text
×
Set var "_MyScriptX" = _MyX
Set var "_MyScriptY" = _MyY
Label Loop
If ...
Wait for entity Player 0,0,0,0
Set var "_HP" - _HP
If End
If ...
Wait until var "_MyScriptW" = 1
Set var "_MyScriptW" = 0
Build Trapdoor gate,0,0,0,0
Wait 1
Build Tar gate (open),0,0,0,0
Set var "_MyScriptW" = 1
Else
Build Trapdoor gate,0,0,0,0
Wait 1
Build Tar gate (open),0,0,0,0
If End
Set var "_MyScriptX" + 1
If ...
Wait for item Wall,1,0,1,0
Set var "_MyScriptW" = 1
Else
Set var "_MyScriptX" - 2
If ...
Wait for item Wall,0,0,0,0
Set var "_MyScriptW" = 0
If End
Set var "_MyScriptX" + 2
If End
Set var "_MyScriptX" - 1
If ...
Wait until var "_MyScriptW" = 0
Set var "_MyScriptX" + 1
Else
Set var "_MyScriptX" - 1
If End
Go to Loop
Edit: It's fixed now:
Click here to view the secret text
×
Set var "_MyScriptX" = _MyX
Set var "_MyScriptY" = _MyY
Set var "_MyDEF" = _MyX
Label Loop
Set var "_MyScriptX" = _MyDEF
If ...
Wait for entity Player 0,0,0,0
Set var "_HP" - _HP
If End
Build Trapdoor gate,0,0,0,0
Set var "_MyScriptX" = -9999
Wait 1
Set var "_MyScriptX" = _MyDEF
Build Tar gate (open),0,0,0,0
Set var "_MyScriptX" = _MyDEF + 1
If ...
Wait for item Wall,0,0,0,0
Set var "_MyATK" = 1
If End
Set var "_MyScriptX" = _MyDEF - 1
If ...
Wait for item Wall,0,0,0,0
Set var "_MyATK" = 0
If End
If ...
Wait until var "_MyATK" = 0
Set var "_MyDEF" + 1
Else
Set var "_MyDEF" - 1
If End
Go to Loop
[Last edited by Rens2Sea at 09-30-2008 08:16 PM]