ID:140452
 
What happens is I put a "Narutorox Clan" in my game and gave myself the one jutsu I added to the clan! Note the coding Below:
mob/NarutoroxClan
verb
OBJECTION(mob/M in view)
set name = "OBJECTION"
set category = "Narutorox Clan"
view() << sound('Objection.wma')
view() << "<font color= red> [usr] Says: OBJECTION!"
view() << sound('06 - Phoenix Wright ~ Objection! 2001.mid')

When I click the Jutsu in the "Narutorox Clan" Tab it doesn't do anything at all...When I compile it says Naruto Ninja Showdown.dmb - 0 errors, 0 warnings so please tell me what is wrong with it!

Thats, because you set mob/M in view, and that dont do anything, so if you want for all players in your screen, u need set (mob/M in oview(usr))

mob/NarutoroxClan
verb
OBJECTION(mob/M in oview(usr)) //For all Players in your Screen!
set name = "OBJECTION"
set category = "Narutorox Clan"
view() << sound('Objection.wma')
view() << "<font color= red> [usr] Says: OBJECTION!"
view() << sound('06 - Phoenix Wright ~ Objection! 2001.mid')


-Someone Correct me if im worng

-Gohan
In response to Gohan Games
view() takes an argument, if i belive. The arguments to the verb should have no effect.

For example, if you want everyone in a five square radius to hear this, type:
view(5) << "whatever"
In response to Neos300
Oh, Yea i Missed That. Sorry.


-Gohan
In response to Gohan Games
Oh god you're so wrong haha. You need to read the reference on view and oview.

view and oview work without arguments, since they default to what the usr can see on the map (basically their world.view setting), the only difference between them being the fact that oview omits the usr.
In response to Spunky_Girl
He was saying the issue was using "view", and suggested using "oview(usr)" instead, which is correct.
Narutorox123456 wrote:
...

The most important concept here is that when calling a function. "blah()". You need the "()".

Had you not forgotten the "()" in view(). It would have defaulted to usr.
In response to Hulio-G
Hulio-G wrote:
Narutorox123456 wrote:
...

The most important concept here is that when calling a function. "blah()". You need the "()".

Had you not forgotten the "()" in view(). It would have defaulted to usr.
I didnt forget the () in view()
In response to Narutorox123456
Narutorox123456 wrote:
Hulio-G wrote:
Narutorox123456 wrote:
...

The most important concept here is that when calling a function. "blah()". You need the "()".

Had you not forgotten the "()" in view(). It would have defaulted to usr.
I didnt forget the () in view()

In here you did. "OBJECTION(mob/M in view)".

Should be "OBJECTION(mob/M in view())".

In response to Hulio-G
Hulio-G wrote:
Narutorox123456 wrote:
Hulio-G wrote:
Narutorox123456 wrote:
...

The most important concept here is that when calling a function. "blah()". You need the "()".

Had you not forgotten the "()" in view(). It would have defaulted to usr.
I didnt forget the () in view()

In here you did. "OBJECTION(mob/M in view)".

Should be "OBJECTION(mob/M in view())".
oh ok... I am not used to the new updates in coding because in other game sources I help out with new versions with(note I said NEW VERSIONS not NEW GAMES so it doesn't mean a rip) which has (mob/M in view) and still works...