ID:267661
Aug 11 2003, 9:49 am
|
|
I think its about time i added dragonballs to my DBZ game, otherwise it may aswell be called 'Z'. I know this is something simple to do with variables and movableatoms, but i've everused that stuff before, and i ned a little help.
|
In response to Camaro
|
|
This is what i have.
obj dragonballs db1 icon = 'dragonball.dmi' icon_state = "1" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db1 == 1) usr << "I don't need this." else usr << "You collect Dragonball 1" usr.db += 1 usr.db1 = 1 obviously, this is just fo one of them. I know i need to define the variables somewhere in the Login() proc, but then when i do, the error is var defined, but not used. Why is this happening? |
In response to Evil Guy
|
|
Well that error(obviously) means that one of the variables you have made wasn't used.
Look at your coding this is an example: mob verb averb() var/avar = "Something" usr << "Hi" That just says Hi, but the variable "avar" isnt used, which would output an error like what you got. About the login variable, what are you talking about. I'm not quite following you in order to help. Post more information on how you want your system to work, and people will help you. James |
In response to SSJ2GohanDBGT
|
|
obj
dragonballs db1 icon = 'dragonball.dmi' icon_state = "1" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db1 == 1) usr << "I don't need this." else usr << "You collect Dragonball 1" usr.db += 1 usr.db1 = 1 db2 icon = 'dragonball.dmi' icon_state = "2" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db2 == 1) usr << "I don't need this." else usr << "You collect Dragonball 2" usr.db += 1 usr.db2 = 1 db4 icon = 'dragonball.dmi' icon_state = "4" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db4 == 1) usr << "I don't need this." else usr << "You collect Dragonball 4" usr.db += 1 usr.db4 = 1 db3 icon = 'dragonball.dmi' icon_state = "3" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db3 == 1) usr << "I don't need this." else usr << "You collect Dragonball 3" usr.db += 1 usr.db3 = 1 db5 icon = 'dragonball.dmi' icon_state = "5" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db5 == 1) usr << "I don't need this." else usr << "You collect Dragonball 5" usr.db += 1 usr.db5 = 1 db6 icon = 'dragonball.dmi' icon_state = "6" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db6 == 1) usr << "I don't need this." else usr << "You collect Dragonball 6" usr.db += 1 usr.db6 = 1 db7 icon = 'dragonball.dmi' icon_state = "7" verb Get() set src in oview(2) set category = "Dragonball" if(usr.db7 == 1) usr << "I don't need this." else usr << "You collect Dragonball 7" usr.db += 1 usr.db7 = 1 atom/movable var usr.db1 = 0 usr.db2 = 0 usr.db3 = 0 usr.db4 = 0 usr.db5 = 0 usr.db6 = 0 usr.db7 = 0 usr.db = 0 This is all the coding i've done to do with the DB's. Although i need help with all of it, i'm certain that its where i've put the vars, that is causing me most problems. lol, forget that thing earlier with the Login() proc, i was half-asleep and didn't know what i was doing. =p -Evil Guy- |
In response to Evil Guy
|
|
Well, all you really need to do is a proc (for the wish) that checks if they have all the dragonballs, it adds a verb for them to wish (at the end of the wish remove the verb) .. you also need to make it check the verb on login, as well as everytime they pick one up.
James |
In response to SSJ2GohanDBGT
|
|
ok, thanks i'll try.
|
Well you didn't exactly state what you want help with. If you want to know how to code one, you should have looked obj up.
-Camaro-