A.I. Code |
|
Learn how to create an A.I. system for mobs. Have enemies who attack on sight and those who attack when you attack them! Uses little CPU usuage since they only move when they are in your screen! Comes with Attacking system aswell. |
To download this demo for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Rifthaven.A.I.Code##version=3 Emulator users, in the BYOND pager go to File | Open Location and enter this URL:byond://Rifthaven.A.I.Code##version=3 |
Copyright © 2025 BYOND Software.
All rights reserved.
untime error: undefined variable /turf/wall/var/client
proc name: Bump (/mob/Monsters/enemy/Bump)
usr: (src)
src: the enemy (/mob/Monsters/enemy)
src.loc: the tunnelfloor (22,40,1) (/turf/tunnelfloor)
call stack:
the enemy (/mob/Monsters/enemy): Bump(the wall (22,39,1) (/turf/wall))
the enemy (/mob/Monsters/enemy): Move(the tunnelfloor (22,40,1) (/turf/tunnelfloor), 2, 0, -13)
the enemy (/mob/Monsters/enemy): Wander()
the enemy (/mob/Monsters/enemy): New(the tunnelfloor (22,41,1) (/turf/tunnelfloor))