ID:262754
 
Code:
obj/Bass_Summon_chip
icon='cheese.dmi'
verb
Summon_Bass(mob/M in oview(4))
if(usr.Custom >= 50)
set category = "Fight"
var/temp = usr.icon // hold the icon in a variable
usr.icon = 'bass_summ.dmi'
spawn(15)
view(5)<<"<font color = brown><BIG>[usr] : Multi Gun!!!! </BIG></font>"
var/W = list(mob in oview(3))
var/Y = list(mob in oview(2))
var/Z = list(mob in oview(1))
M.overlays += bshot
sleep(1)
W.overlays += bshot
sleep(1)
Y.overlays += bshot
sleep(1)
Z.overlays += bshot
sleep(1)
M.HP -= 220
sleep(1)
W.HP -= 220
sleep(1)
Y.HP -= 220
sleep(1)
Z.HP -= 220
sleep(3)
m.overlays += bshot
sleep(1)
w.overlays += bshot
sleep(1)
y.overlays += bshot
sleep(1)
z.overlays += bshot
sleep(1)
usr.icon = temp // revert the icon back
else
usr << "You Dont Have Enough Custom!"


Problem description:loading simple.dme
sdfsd.dm:39:error:bust1 :duplicate definition
SkillGain.dm:4:error:bust1 :previous definition
sdfsd.dm:40:error:bust2 :duplicate definition
SkillGain.dm:5:error:bust2 :previous definition
sdfsd.dm:41:error:bust3 :duplicate definition
SkillGain.dm:6:error:bust3 :previous definition
sdfsd.dm:42:error:bust4 :duplicate definition
SkillGain.dm:7:error:bust4 :previous definition
SkillGain.dm:425:error:bust1:undefined var
SkillGain.dm:427:error:bust1:undefined var
SkillGain.dm:445:error:mob:undefined var
SkillGain.dm:446:error:mob:undefined var
SkillGain.dm:447:error:mob:undefined var
SkillGain.dm:448:error:M.overlays:undefined var
SkillGain.dm:448:error:bust1:undefined var
SkillGain.dm:450:error:bust1:undefined var
SkillGain.dm:452:error:bust1:undefined var
SkillGain.dm:454:error:bust1:undefined var
SkillGain.dm:456:error:M.HP:undefined var
SkillGain.dm:464:error:M.overlays:undefined var
SkillGain.dm:464:error:bust1:undefined var
SkillGain.dm:466:error:bust1:undefined var
SkillGain.dm:468:error:bust1:undefined var
SkillGain.dm:470:error:bust1:undefined var
SkillGain.dm:497:error:m.overlays:undefined var
SkillGain.dm:497:error:bust1:undefined var
SkillGain.dm:499:error:m.overlays:undefined var
SkillGain.dm:499:error:bust1:undefined var
SkillGain.dm:500:error:m.HP:undefined var
SkillGain.dm:569:error:mob:undefined var
SkillGain.dm:570:error:mob:undefined var
SkillGain.dm:571:error:mob:undefined var
SkillGain.dm:572:error:bshot:undefined var
SkillGain.dm:574:error:W.overlays:undefined var
SkillGain.dm:574:error:bshot:undefined var
SkillGain.dm:576:error:Y.overlays:undefined var
SkillGain.dm:576:error:bshot:undefined var
SkillGain.dm:578:error:Z.overlays:undefined var
SkillGain.dm:578:error:bshot:undefined var
SkillGain.dm:582:error:W.HP:undefined var
SkillGain.dm:584:error:Y.HP:undefined var
SkillGain.dm:586:error:Z.HP:undefined var
SkillGain.dm:588:error:m.overlays:undefined var
SkillGain.dm:588:error:bshot:undefined var
SkillGain.dm:590:error:w.overlays:undefined var
SkillGain.dm:590:error:bshot:undefined var
SkillGain.dm:592:error:y.overlays:undefined var
SkillGain.dm:592:error:bshot:undefined var
SkillGain.dm:594:error:z.overlays:undefined var
SkillGain.dm:594:error:bshot:undefined var
SkillGain.dm:569:W :warning: variable defined but not used
SkillGain.dm:570:Y :warning: variable defined but not used
SkillGain.dm:571:Z :warning: variable defined but not used
SkillGain.dm:445:error:W: compile failed (possible infinite cross-reference loop)
SkillGain.dm:446:error:Y: compile failed (possible infinite cross-reference loop)
SkillGain.dm:447:error:Z: compile failed (possible infinite cross-reference loop)
SkillGain.dm:450:error:W.overlays: compile failed (possible infinite cross-reference loop)
SkillGain.dm:452:error:Y.overlays: compile failed (possible infinite cross-reference loop)
SkillGain.dm:454:error:Z.overlays: compile failed (possible infinite cross-reference loop)
SkillGain.dm:458:error:W.HP: compile failed (possible infinite cross-reference loop)
SkillGain.dm:460:error:Y.HP: compile failed (possible infinite cross-reference loop)
SkillGain.dm:462:error:Z.HP: compile failed (possible infinite cross-reference loop)
SkillGain.dm:466:error:W.overlays: compile failed (possible infinite cross-reference loop)
SkillGain.dm:468:error:Y.overlays: compile failed (possible infinite cross-reference loop)
SkillGain.dm:470:error:Z.overlays: compile failed (possible infinite cross-reference loop)

simple.dmb - 62 errors, 3 warnings (double-click on an error to jump to it)


your not showing all the code
In response to JRR-Zero
JRR-Zero wrote:
your not showing all the code

its all the verb, i want to make a player changes his icon for a while and shots to various mobs in various spots, and add them a overlay and reduce hp

the code problem its with the new W,Y, and Z...
How i define more mobs to a verb?
In response to Pharaoh Atem
sdfsd.dm:39:error:bust1 :duplicate definition


your not showing any code using burst1
In response to JRR-Zero
JRR-Zero wrote:
sdfsd.dm:39:error:bust1 :duplicate definition


your not showing any code using burst1


its
mob
var
bust1 = 'bust1.dmi'


this is on the start of the DM file, and is already a var defined in other DM file, but in here he dont accept...
i need to move all this OBJ to the other DM file?OMG
In response to Pharaoh Atem
god , i try helping you with your coding and


"its

mob
var
bust1 = 'bust1.dmi'



this is on the start of the DM file, and is already a var defined in other DM file, but in here he dont accept...
i need to move all this OBJ to the other DM file?OMG
"
and once again your not showing all the coding & now youve pissed me off

hope you find your help
In response to JRR-Zero
JRR-Zero wrote:
god , i try helping you with your coding and


"its

mob
var
bust1 = 'bust1.dmi'



this is on the start of the DM file, and is already a var defined in other DM file, but in here he dont accept...
i need to move all this OBJ to the other DM file?OMG
"
and once again your not showing all the coding & now youve pissed me off

hope you find your help

*** are you saying all the code???

I ONLY NEED A HELP: IM TRYING TO MAKE A VERB TO THE USR CHANGE HIS ICON AND SHOTS ON VARIOUS MOBS IN 3 TYPES OF OVIEW, EVERY MOB'S HP WILL BE REDUCED BY 220 AND THEY WILL "RECEIVE" A OVERLAY FOR 0.3 SECONDS!!!

If you dont know how to make this, sorry but i NEED HELP, AND THE PROBLEM WITH THE "bust1" VAR ITS FIXED!!!
In response to Pharaoh Atem
listen i know for a fact that on this fourm not actting nice wont get you any where i can help you & so can every one else reading this but the way you act makes people decide to help you .
In response to JRR-Zero
http://bwicki.byond.com/ByondBwicki.dmb?ErrorCodes

error: compile failed (possible infinite cross-reference loop)

Problem: Usually this happens because you're using a var the same place you first define it.
Fix: Define the var first, then change it.
Example:
var/thing = "This is a [thing]."

That line is prefectly legal without the var/ part, if thing is defined somewhere else.

var/thing = "duck"thing = "This is a [thing]."


find out yourself
In response to JRR-Zero
JRR-Zero wrote:
http://bwicki.byond.com/ByondBwicki.dmb?ErrorCodes

error: compile failed (possible infinite cross-reference loop)

Problem: Usually this happens because you're using a var the same place you first define it.
Fix: Define the var first, then change it.
Example:
var/thing = "This is a [thing]."

That line is prefectly legal without the var/ part, if thing is defined somewhere else.

var/thing = "duck"thing = "This is a [thing]."


find out yourself

i've sayd taht this part its ALL FIXED!

But i want to know how i make various mobs in various oviews and on where.Because this
obj
Example<B>(mob/M in oview(2))</B>


looked at the bold part?i want to make more mobs on more oviews...HOW???
In response to Pharaoh Atem
mob/verb/Uber_Attack()
for(var/mob/M in oview(src,6))
M.hp -=220
// Add other stuff here.


Ok, your problem is simble. You're attempting to add an overlay to a list, not to each individual mob. The best way to actually do this, IMHO, would be to use a for loop and iterate over a list of all the mobs in the range you want. below is an example that should work, if not at least I think it should help. I'm currently in class, and do not have access to BYOND to test this out.

Hope this helped you.

obj/Bass_Summon_chip
icon='cheese.dmi'

verb
Summon_Bass()
set category = "Fight"
var/mob/M = usr
if(M.Custom >= 50)
var/temp = M.icon // hold the icon in a variable
var/mob/E
M.icon = 'bass_summ.dmi'
spawn(15)
view(5)<< "<font color = brown><BIG>[M] : Multi Gun!!!! </BIG></font>"
for(var/mob/E in oview(4))
E.overlay += bshot
sleep(1)
E.HP -= 220
sleep(3)
E.overlay += bshot
sleep(1)
M.icon = temp // revert the icon back
else
M << "You Dont Have Enough Custom!"
In response to Clowd
Clowd wrote:
Ok, your problem is simble. You're attempting to add an overlay to a list, not to each individual mob. The best way to actually do this, IMHO, would be to use a for loop and iterate over a list of all the mobs in the range you want. below is an example that should work, if not at least I think it should help. I'm currently in class, and do not have access to BYOND to test this out.

Hope this helped you.

> obj/Bass_Summon_chip
> icon='cheese.dmi'
>
> verb
> Summon_Bass()
> set category = "Fight"
> var/mob/M = usr
> if(M.Custom >= 50)
> var/temp = M.icon // hold the icon in a variable
> var/mob/E
> M.icon = 'bass_summ.dmi'
> spawn(15)
> view(5)<< "<font color = brown><BIG>[M] : Multi Gun!!!! </BIG></font>"
> for(var/mob/E in oview(4))
> E.overlay += bshot
> sleep(1)
> E.HP -= 220
> sleep(3)
> E.overlay += bshot
> sleep(1)
> M.icon = temp // revert the icon back
> else
> M << "You Dont Have Enough Custom!"
>



error messages :

SkillGain.dm:619:error:E :duplicate definition
SkillGain.dm:615:error:E :previous definition
SkillGain.dm:620:error:E.overlay:undefined var
SkillGain.dm:620:error:bshot:undefined var
SkillGain.dm:624:error:E.overlay:undefined var
SkillGain.dm:624:error:bshot:undefined var
SkillGain.dm:627:error:E.overlay:undefined var
SkillGain.dm:627:error:bshot:undefined var
SkillGain.dm:610:error:Summon_Bass :undefined proc
SkillGain.dm:629:error:M:duplicate definition
SkillGain.dm:629:error:"You Dont Have Enough Custom!":duplicate definition
SkillGain.dm:629:error:<< :instruction not allowed here
SkillGain.dm:609:error:verb :expected proc definition
In response to Pharaoh Atem
looked at the bold part?i want to make more mobs on more oviews...HOW???

"thats a Develper How To question
In response to JRR-Zero
JRR-Zero wrote:
listen i know for a fact that on this fourm not actting nice wont get you any where i can help you & so can every one else reading this but the way you act makes people decide to help you .

As far I can see, you were the one who started "not acting nice".

O-matic
In response to JRR-Zero
JRR-Zero wrote:
god , i try helping you with your coding and

You haven't tried. You've only asked him to show some more code. That isn't considered helping, but asking for more code to see if you can help. You haven't come to the helping part yet.

O-matic
In response to Pharaoh Atem
Pharaoh Atem wrote:
i've sayd taht this part its ALL FIXED!

But i want to know how i make various mobs in various oviews and on where.Because this
> obj
> Example<B>(mob/M in oview(2))</B>
>

looked at the bold part?i want to make more mobs on more oviews...HOW???


There aren't any bold parts; You can't put a HTML tag, well, actually you can, but it won't be executed.

And please be more specific on your question, I barely understood it..

O-matic
In response to O-matic
O-matic wrote:
Pharaoh Atem wrote:
i've sayd taht this part its ALL FIXED!

But i want to know how i make various mobs in various oviews and on where.Because this
> > obj
> > Example<B>(mob/M in oview(2))</B>
> >

looked at the bold part?i want to make more mobs on more oviews...HOW???


There aren't any bold parts; You can't put a HTML tag, well, actually you can, but it won't be executed.

And please be more specific on your question, I barely understood it..

O-matic


only all look this:
i use his codes :
        Summon_Bass(mob/M in oview(2))
if(usr.Custom >= 200)
var/bshot = 'bshot.dmi'
var/mob/W = locate(/mob in oview(3))
var/mob/Y = locate(/mob in oview(2))
var/mob/Z = locate(/mob in oview(1))
set category = "Fight"
var/temp = usr.icon // hold the icon in a variable
usr.icon = 'bass_summ.dmi'
spawn(15)
view(5)<<"<font color = brown><BIG>[usr] : Multi Gun!!!! </BIG></font>"
M.overlays += bshot
W.overlays += bshot
Y.overlays += bshot
Z.overlays += bshot
M.HP -= 220
W.HP -= 220
Y.HP -= 220
Z.HP -= 220
M.overlays -= bshot
W.overlays -= bshot
Y.overlays -= bshot
Z.overlays -= bshot
spawn(5)
usr.icon = temp // revert the icon back
usr.Custom -= 200
else
usr << "You Dont Have Enough Custom!"


and they gived to me this problem, only WHEN I USE THE VERB:

runtime error: Cannot read null.overlays
proc name: Summon Bass (/obj/Bass_Summon_chip/verb/Summon_Bass)
source file: SkillGain.dm,622
usr: Pharaoh Atem (/mob/Player)
src: Bass Summon chip (/obj/Bass_Summon_chip)
call stack:
Bass Summon chip (/obj/Bass_Summon_chip): Summon Bass(Main Shop (/mob/Main_Shop))




All i want to know:

I want to make a verb, that makes a usr "shots" a mob in 2nd oview, next to a mob in 3rd oview, again on nd and go on 1st oview, and all mobs have overlay+=bshot, var already defined!WTF if null.overlay????

Sorry for bad english
In response to Pharaoh Atem
ok. as runtime errors are very hard ill help you

which line is "622" if you mark it onto the code ill help you if my help dosnt work go to develper how to & ask them
"All i want to know:

I want to make a verb, that makes a usr "shots" a mob in 2nd oview, next to a mob in 3rd oview, again on nd and go on 1st oview, and all mobs have overlay+=bshot, var already defined!WTF if null.overlay????
"


ok so show me line 622 and ill help you
In response to JRR-Zero
JRR-Zero wrote:
ok. as runtime errors are very hard ill help you

which line is "622" if you mark it onto the code ill help you if my help dosnt work go to develper how to & ask them
"All i want to know:

I want to make a verb, that makes a usr "shots" a mob in 2nd oview, next to a mob in 3rd oview, again on nd and go on 1st oview, and all mobs have overlay+=bshot, var already defined!WTF if null.overlay????
"


ok so show me line 622 and ill help you

this is the line 622
               Z.overlays -= bshot
</DM
Page: 1 2 3