ID:169041
 
Ok, so last night I put this thing on my game (non released thank god) that gave my players selection in their race. Everything worked well, BUT, today when my Iconner made some turfs, I made a little area and went to test it out. It seems it dont even ask you what race you would like to be, and your char. is invisible!

I dont know what to change to make this work...
(Post your code)

Hiead
In response to Hiead
mob
Login()
src.class = input("What race would you like to be?")in list("Namek","Human","Android","Icer","Demon","Saiyan")
switch(src.class)
if("Namek")
src.icon = 'Namekan-Dark.dmi'
src.maxpl = 900
src.pl = 900
src.maxki = 200
src.ki = 200
src.pnch = 22
src.kik = 24
src.acc = 40
if("Human")
src.icon = 'Human-Tan.dmi'
src.maxpl = 700
src.pl = 700
src.maxki = 100
src.ki = 100
src.pnch = 20
src.kik = 23
src.acc = 40

if("Android")
src.icon = 'Mecanical Android-Tan.dmi'
src.maxpl = 5000
src.pl = 5000
src.maxki = 600
src.ki = 600
src.pnch = 23
src.kik = 29
src.acc = 40

if("Icer")
src.icon = "Icer-Pink.dmi"
src.maxpl = 1000
src.pl = 1000
src.maxki = 500
src.ki = 500
src.pnch = 12
src.kik = 17
src.acc = 40

if("Demon")
src.icon = "demon"
src.maxpl = 500
src.pl = 500
src.maxki = 100
src.ki = 100
src.pnch = 8
src.kik = 14
src.acc = 40

if("Saiyan")
src.icon = "Saiyan-Tan.dmi"
src.maxpl = 1500
src.pl = 1500
src.maxki = 600
src.ki = 600
src.pnch = 15
src.kik = 20
src.acc = 40

..()

mob
var
class
maxpl
pl
maxki
ki
pnch
kik
acc


It dont give me the option to cchoose my race when I enter the game either.
In response to WindShock
Tell me if this fixes anything:
mob
Login()
..()
src.class = input("What race would you like to be?")in list("Namek","Human","Android","Icer","Demon","Saiyan")
switch(src.class)
if("Namek")
src.icon = 'Namekan-Dark.dmi'
src.maxpl = 900
src.pl = 900
src.maxki = 200
src.ki = 200
src.pnch = 22
src.kik = 24
src.acc = 40
if("Human")
src.icon = 'Human-Tan.dmi'
src.maxpl = 700
src.pl = 700
src.maxki = 100
src.ki = 100
src.pnch = 20
src.kik = 23
src.acc = 40
if("Android")
src.icon = 'Mecanical Android-Tan.dmi'
src.maxpl = 5000
src.pl = 5000
src.maxki = 600
src.ki = 600
src.kik = 29
src.acc = 40

if("Icer")
src.icon = 'Icer-Pink.dmi'
src.maxpl = 1000
src.pl = 1000
src.maxki = 500
src.ki = 500
src.pnch = 12
src.kik = 17
src.acc = 40

if("Demon")
src.icon = 'demon.dmi'
src.maxpl = 500
src.pl = 500
src.maxki = 100
src.ki = 100
src.pnch = 8
src.kik = 14
src.acc = 40
if("Saiyan")
src.icon = 'Saiyan-Tan.dmi'
src.maxpl = 1500
src.pl = 1500
src.maxki = 600
src.ki = 600
src.pnch = 15
src.kik = 20
src.acc = 40
src.loc = locate(1,1,1) // Wherever

mob
var
class
maxpl
pl
maxki
ki
pnch
kik
acc


Note that the icon files are accessed with single quotes(about half of yours were double).
In response to Hiead
Thanks a million man. It worked, and it lets me choose race. Now I just gotta fix my overlay problem..
o.o
In response to WindShock
gah..to many DBZ games.....bad....

just so this isn't to off topic, what's wrong ith your overlays?
In response to WindShock
WindShock wrote:
Thanks a million man. It worked, and it lets me choose race.

Great!

Now I just gotta fix my overlay problem..
o.o

Need help?

Hiead
In response to Hiead
No, just passed it too! Im on a roll today!

Im going to get into ICON (MOB) STATES now.
I MIGHT need help.
In response to WindShock
well,im boerd shitless at the moment, so me(and im guessing Hiead) are here if help is needed/
In response to Reinhartstar
Ok
Sweet.
Um...Yah, lol.
Let me write up the code real quick, and when i compile it, there destined to be errors, I will ask you guys..

Thanks
In response to WindShock
Ok! No errors! But I do have one problem...
This change that the mob is experiancing in the icon_state change, makes the mob look MAD. And he does a little movement in this state. But I want him to only do the move ment one time, and then keep the look (The p.oed look), but not continue the movement.
In response to Reinhartstar
Woa woa woa. If you only knew why we were making this DBZ game. Im NO DBZer. And there are VERY FEW unique DBZ games out there. I am trying to create a game to attract all the DBZers, and leave the Zetas etc. all abandoned.
You know what I mean?
Also, I was told DBZ was a good start.

My overlays are fine now...
In response to WindShock
WindShock wrote:
But I want him to only do the move ment one time, and then keep the look (The p.oed look), but not continue the movement.

Look up the flick proc, try it out. If you get more errors, as was said by a certain someone else, i'm bored and here to help

Hiead
In response to Hiead
I have looked up flick before. In the f1 help, and on the guide. I couldnt get a good understanding of it...But I have an idea..


Is there any way for a code make the mob go through one state, into another?
In response to WindShock
WindShock wrote:
Woa woa woa. If you only knew why we were making this DBZ game. Im NO DBZer. And there are VERY FEW unique DBZ games out there. I am trying to create a game to attract all the DBZers, and leave the Zetas etc. all abandoned.
You know what I mean?
Also, I was told DBZ was a good start.

My overlays are fine now...

well to begin, i know what you mean. i would hopefully like to see this go up, because then, as you said, people would come to yours rather than playing the thousands of "Zeta" games, which are all identical to the last.

Second, and about your question, ot the best of my knowledge, you have to use flick to change from one icon_state to the next. That is, if im really thinking of what you want.
In response to WindShock
I just coded something similar today. The way I did it was to add a new object/mob like so:

new /obj/items/whatever(src.loc)
del(src)
or
new /mob/whatever(src.loc)
del(src)
In response to WindShock
mob
verb
Anger()
usr.icon_state = "Enrage"
usr << "You feel pised off."
sleep(300)

Thats my code as of now, to get p.oed.
The sleep dont work...(I think thats what its supposed to be.)

But, my idea is to get the sleep() to work..then do this..

mob
verb
Anger()
usr.icon_state = "Enrage"
usr << "You feel pised off."
sleep(300)
usr.icon_state = "Next State"

Eh...eh? Would that work?
In response to Reinhartstar
Well, Im going to have to learn it sooner or later because Im going to have items that when in use...need to move.
In response to WindShock
The code you have posted earlier to make a mob angry should work. Of course, i believe you could just use spawn instead of sleep. so where sleep is, try

spawn(30)

instead.
In response to Reinhartstar
Sleep is just going to delay the action for the specified amount of time.
Page: 1 2