Re: RPG Maker 2 Tips & Tricks 2.0
Heres my contribution.
How to make somewhat intelligent AI movements:
Somewhat jerky, but you can modify to your likings....Mainly for Acbs's but can be used for numerous things.
Make this flag.
<Lock/EvtLD>
Scripts:
Courtesy Of thetruecoolness for the lock variables trick.
[Lock/Variable]
SBR:Lock/EvtLD=on(<---doesn't have to be that, you can use any flag if youd like..)
other:wait:1F
SBE
Data:Flag:Lock/EvtLD=off
[Repeat Step]
SBR:FLag fixed=off
Event:Movement: Direction Change:Face Leader:5F
Other:wait:40F
Script:call:[Lock/Variable]
Event:Control:Event:Info Load
Sort:Event: Dir
Apply If 0
Event Move: Direction Move:E 1 step 8frames.
Script:Control:To end
.......Repeat all the way up to 7
Apply if 7
Event Move: Direction Move:NE 1step 8frames
SBE
Data:Flag:Lock/EvtLD=off
SBE
Just use this method instead of the event action TO LEADER command.
Heres my contribution.
How to make somewhat intelligent AI movements:
Somewhat jerky, but you can modify to your likings....Mainly for Acbs's but can be used for numerous things.
Make this flag.
<Lock/EvtLD>
Scripts:
Courtesy Of thetruecoolness for the lock variables trick.
[Lock/Variable]
SBR:Lock/EvtLD=on(<---doesn't have to be that, you can use any flag if youd like..)
other:wait:1F
SBE
Data:Flag:Lock/EvtLD=off
[Repeat Step]
SBR:FLag fixed=off
Event:Movement: Direction Change:Face Leader:5F
Other:wait:40F
Script:call:[Lock/Variable]
Event:Control:Event:Info Load
Sort:Event: Dir
Apply If 0
Event Move: Direction Move:E 1 step 8frames.
Script:Control:To end
.......Repeat all the way up to 7
Apply if 7
Event Move: Direction Move:NE 1step 8frames
SBE
Data:Flag:Lock/EvtLD=off
SBE
Just use this method instead of the event action TO LEADER command.



Comment