Mirage Engine
Amulet of Speed - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Amulet of Speed (/showthread.php?tid=78)



Amulet of Speed - Tutorial Bot - 02-06-2006

Author: grimsk8ter11
Difficulty: 1/5

Example of how you can change some variables in Mirage to get some new effects. The "Amulet of Speed" item:

:: CLIENT SIDE ::
In modConstants, remove:
Code:
' Speed moving vars
Public Const WALK_SPEED = 4
Public Const RUN_SPEED = 8
In modGlobals, add:
Code:
' Speed moving vars
Public WALK_SPEED As Integer
Public RUN_SPEED As Integer
In modGameLogic, find UpdateInventory, and replace it with:[code]Public Sub UpdateInventory()
Dim i As Long

frmMirage.lstInv.Clear

' Show the inventory
For i = 1 To MAX_INV
If GetPlayerInvItemNum(MyIndex, i) > 0 And GetPlayerInvItemNum(MyIndex, i)