Please can somebody make me a script where a combo randomly moves around the screen but does not go over unwalkable areas?
I would like to use this in my quest when I get round to it. *gets round to it*
Thanks, Limzo.
Please can somebody make me a script where a combo randomly moves around the screen but does not go over unwalkable areas?
I would like to use this in my quest when I get round to it. *gets round to it*
Thanks, Limzo.
Should work... Lemme know if it doesn't.Code:WAIT WAITFRAME COMPAREV CANMOVE,1 GOTOTRUE REVERSE COMPAREV d0,0 GOTOTRUE TURNU SUBV d0,1 COMPAREV d1,0 GOTOTRUE TURNR SUBV d1,1 GOTO WAIT REVERSE COMPAREV xd,0 GOTOFALSE YMOV MULTV xd,-1 YMOV COMPAREV yd,0 GOTOFALSE WAIT MULTV xd,1 GOTO WAIT TURNU SETV xd,0 SETV yd,1 SETR d0,d2 GOTO WAIT TURNR SETV yd,0 SETV xd,1 SETR d1,d3 GOTO WAIT
Sorry to be a noob, but I don't know how to use Scripts at all. I can only use FFCombo scripting, and not very well.
EDIT: Stupid me, this is FFCombo scripting. Forget that Pm revfan.
EDIT2: Okay, it doesn't work. It comes up with the message,
"Unable to parse instruction 2 from script random.txt
The error was: Parameter 1 invalid.
The command was (COMPAREV) (CANMOVE, 1)"
*tries to fix from past experiences*
go to z-script and when you type the code, seems there is lot of caps in the code so make sure you capital them and when you do so compile it go to freeformcombos and select and edit a combo choose your tile and go to select script. i hope this helps
CANMOVE doesn't work as a variable in Zasm... damn... Does anyone know the Zasm equivilant of CANMOVE?
Nonono, I went on Tools > Import FF script.
Let me guess, it's not that kind of script.
No, you had it right. It's ASM, so it's imported rather than compiled.
I'm not sure precisely what you're trying to do with it; you're trying to test the solidity of a combo, I take it?Originally Posted by Revfan9
To do that, load the position of the combo you want to test into D0 and use COMBOSD. That'll give you a 4-bit number representing the solidity of the combo; you can check the solidity of each quarter separately using AND. 1 for the top-left, 2 for the bottom-left, 3 for the top-right, and 4 for the bottom-right. 1 is solid, 0 is walkable.
Sorry, I lost track after FFCombos and scripting became more advanced.
Please can you explain? I have no idea what those "D" boxes do.
Please guys, I need this for random battles.
Patience my friend, the AGN boards are slow these days and you sometimes need to give people a few days to respond to posts.
What kind of "random" movement to you want?
1. A random walk in two dimensions?
2. Two simultaneous random walks in one dimension?
3. Constant velocity in the cardinal directions, with the direction chosen randomly when an unwalkable tile is hit?
4. Constant velocity in any direction, with the direction chosen randomly when an unwalkable tile is hit?
5. As in 3 or 4, but with a fixed probability of spontaneously changing direction every few frames?
6. As in 5, but with the direction change biased towards the current player position (darknut movement)?
7. Something else entirely?
The power is yours.
There are currently 1 users browsing this thread. (0 members and 1 guests)