lol got ya!Anyway,it's NOT a stripping game,that was just my idea of getting ppl to come to this post (lol thanks Goku!).But I need help.I typed in:
mob/var
mob/digimon //Variable defined as a mob.
mob/digimon
var
HP //Define variables for the parent_type of mob/digimon
MP
Def
Str
Spd
mob/digimon/Renamon
HP=130 //Define variables for
MP=130
Def=70
Str=56
Spd=95
mob/Login()
src.digimon=new/mob/digimon/Renamon // Set the player's variable as a new 'Renamon'
..() // Continue with the parent procedure.
mob/verb
Digimon_Attack()
var/mob/digimon/TargetMob
for(TargetMob in oview(1,src.digimon)) //Loop through all digimon near yours.
TargetMob.HP-=src.digimon.Str
view(src.digimon) << "[src.digimon.name] attacked [TargetMob.name] for [src.digimon.str] damage!"
And I have the Str variable defined,but I still get an error:src.digimon.str:undefined var--on the 6th line.But I have the var defined and it still says there is an error..what's wrong??
ID:261767
May 16 2003, 3:20 am
|
|
In response to Alathon
|
|
Please do not post duplicate threads.
Further behavior following this pattern will warrant heavier action taken. I have deleted your duplicate post. |
In response to Alathon
|
|
ANYWAY,I did that stuff and I kept getting the same error.What the heck is goin' on??
|
In response to Alathon
|
|
why do all digimon's names end in mon?
|
In response to Starwarspower
|
|
Imon domon notmon knowmon. Maybemon itmon ismon becausemon peoplemon keepmon bumpingmon threadmons withmon completelymon offmon topicmon questionmons? =P
(Actually, probably because "mon" means "monster" - so they wouldn't be digimons - "digital monsters" - without that in their name! =) ) Edit: Typo - I said "ismob" instead of "ismon". You Know You're a DM Nerd When...! |
In response to Crispy
|
|
Crispy wrote:
Edit: Typo - I said "ismob" instead of "ismon". You Know You're a DM Nerd When...! yup :0 |
In response to Lil'T
|
|
Lil'T wrote:
ANYWAY,I did that stuff and I kept getting the same error.What the heck is goin' on?? Create a new var. <code>var/mob/digimon/D = src.digimon</code> then in your code where it says src.digimon.Str D.Str And oh yea! make sure to define the new var right before you first use src.digimon.Str Resonating Light |
In response to Resonating_Light
|
|
Resonating_Light wrote:
Lil'T wrote: You're right that there's a problem with the type. What would make rather more sense though would be to change var/mob/digimon to var/mob/digimon/digimon, to give it the correct type. Lummox JR |
In response to Lummox JR
|
|
okay
|
As for your question, DM is case-sensitive. You have defined Str, not str.