ID:149787
Feb 18 2002, 11:05 am
|
|
Battle.dm:4:error: -=: expected end of statement Battle.dm:4:error: missing left-hand argument to -=. Chippie Pets.dmb - 37 errors, 0 warnings (double-click on an error to jump to it) var/damage = usr.power -= M.defence Help P.S. Not U Nadrew |
In response to Lord of Water
|
|
mob
verb ChippieAttack(mob/M as mob in oview (1)) var/damage = usr.power -= M.defence if(damage <= 0) usr << "[M] evades your attack at ease." M << "You evade [usr]'s attack!" else M.stamina -= damage view() << "[usr] pounces at [M] inflicting [damage] damage!" M:deathcheck mob proc deathcheck() if (src.stamina <= 0) world << "[src] perishes!" src.stamina -= 5 src.Move(locate(1,1,1)) usr.power += 1 usr.stamina += 5 usr.run += 1 usr.swim += 1 usr.fly += 3 usr.defence += 2 |
You wrote this wrong: "var/damage = usr.power -= M.defence"
It should be "var/damage = usr.power - M.defence" |
In response to Foomer
|
|
loading Chippie Pets.dme
GM powers.dm:439:visibility:warning: visibility is being phased out; use invisibility Watabou's House Door.dm:8:error::missing expression Watabou's House Door.dm:8:if :warning: if statement has no effect Watabou's House Door.dm:9:in :warning: assignment of procedural properties takes place at compile-time. Move this to the top of the procedure to avoid this warning. Watabou's House Door.dm:17:error:else :invalid proc definition Watabou's House Door.dm:6:error::empty type name (indentation error?) weapons.dm:16:error:/obj/sword:undefined type path weapons.dm:21:error:usr.power:undefined var weapons.dm:22:error:weapon_equiped:undefined var weapons.dm:19:error:Equip :undefined proc weapons.dm:20:error::missing expression weapons.dm:27:error:usr.power:undefined var weapons.dm:28:error:weapon_equiped:undefined var weapons.dm:25:error:Unequip :undefined proc weapons.dm:26:error::missing expression weapons.dm:43:error:usr.defence:undefined var weapons.dm:44:error:armor_equiped:undefined var weapons.dm:41:error:Equip :undefined proc weapons.dm:42:error::missing expression weapons.dm:49:error:usr.defence:undefined var weapons.dm:50:error:armor_equiped:undefined var weapons.dm:47:error:Unequip :undefined proc weapons.dm:48:error::missing expression Battle.dm:4:error:usr.power:undefined var Battle.dm:4:error:M.defence:undefined var Battle.dm:9:error:M.stamina:undefined var Battle.dm:11:M :warning: unused label Battle.dm:11:deathcheck :warning: unused label Battle.dm:16:error:src.stamina:undefined var Battle.dm:18:error:src.stamina:undefined var Battle.dm:20:error:usr.power:undefined var Battle.dm:21:error:usr.stamina:undefined var Battle.dm:22:error:usr.run:undefined var Battle.dm:23:error:usr.swim:undefined var Battle.dm:24:error:usr.fly:undefined var Battle.dm:25:error:usr.defence:undefined var GM powers.dm:439:src.visibility:warning: visibility is being phased out; use invisibility weapons.dm:11:error:Get :undefined proc weapons.dm:15:error:Drop :undefined proc weapons.dm:33:error:Get :undefined proc weapons.dm:37:error:Drop :undefined proc Chippie Pets.dmb - 35 errors, 6 warnings (double-click on an error to jump to it) NOW I HAVE 35 PROBLEMS! |
In response to Watabou
|
|
You had those before, they were just silenced due to the first error, good luck.
|
-LoW