ID:144056
 
Code:
verb
War_challenge()
switch(alert("Whitch Village would you like to challenge?","Leaf","Sound","Sand","Grass","Rain","Cloud","mist","Rock","Snow","Waterfall"))
if("Leaf")
world << "[usr] Has challenged the Leaf Village!"
if("Sound")
world << "[usr] Has challenged the Sound Village!"
if("Sand")
world << "[usr] Has challenged the Sand Village!"
if("Grass")
world << "[usr] Has challenged the Grass Village!"
if("Rain")
world << "[usr] Has challenged the Rain Village!"
if("Cloud")
world << "[usr] Has challenged the Cloud Village!"
if("Mist")
world << "[usr] Has Challenged the Mist Village!"
if("Rock")
world << "[usr] Has challenged the Rock Village!"
if("Snow")
world << "[usr] Has Challenged the Snow Village!"
if("Waterfall")
world << "[usr] Has challenged the Waterfall Village!"



Problem description:

Well I know most of it is probablyt wrong but im new at this and yea... lol
Just need help if you can =)


Errors...
loading A series of unfortunate events.dme
A series of unfortunate events.dm:45:error:alert :expected 1 to 6 arguments (found 11).
A series of unfortunate events.dm:46::warning: empty switch statement
A series of unfortunate events.dm:46:if :warning: if statement has no effect
A series of unfortunate events.dm:48:if :warning: if statement has no effect
A series of unfortunate events.dm:50:if :warning: if statement has no effect
A series of unfortunate events.dm:52:if :warning: if statement has no effect
A series of unfortunate events.dm:54:if :warning: if statement has no effect
A series of unfortunate events.dm:56:if :warning: if statement has no effect
A series of unfortunate events.dm:58:if :warning: if statement has no effect
A series of unfortunate events.dm:60:if :warning: if statement has no effect
A series of unfortunate events.dm:62:if :warning: if statement has no effect
A series of unfortunate events.dm:64:if :warning: if statement has no effect

A series of unfortunate events.dmb - 1 error, 11 warnings (double-click on an error to jump to

Tab in each world after the ifs.
In response to Popisfizzy
What the hell happened to all the other posts?!
Right, so I'll say it again for the 1001th or so time.

-Use input() instead of alert() which can only have 3 buttons.
-Fix up your whole indentation with the if()s under the switch() and the world outputs under the if()s.
In response to Popisfizzy
Popisfizzy wrote:
Tab in each world after the ifs.

verb
War_challenge()
switch(input("Whitch Village would you like to challenge?","Leaf","Sound","Sand","Grass","Rain","Cloud","mist","Rock","Snow","Waterfall"))
if("Leaf")
world << "[usr] Has challenged the Leaf Village!"
if("Sound")
world << "[usr] Has challenged the Sound Village!"
if("Sand")
world << "[usr] Has challenged the Sand Village!"
if("Grass")
world << "[usr] Has challenged the Grass Village!"
if("Rain")
world << "[usr] Has challenged the Rain Village!"
if("Cloud")
world << "[usr] Has challenged the Cloud Village!"
if("Mist")
world << "[usr] Has Challenged the Mist Village!"
if("Rock")
world << "[usr] Has challenged the Rock Village!"
if("Snow")
world << "[usr] Has Challenged the Snow Village!"
if("Waterfall")
world << "[usr] Has challenged the Waterfall Village!"



loading A series of unfortunate events.dme
A series of unfortunate events.dm:45: Inconsistent indentation.
A series of unfortunate events.dm:47: Inconsistent indentation.
A series of unfortunate events.dm:49: Inconsistent indentation.
A series of unfortunate events.dm:51: Inconsistent indentation.
A series of unfortunate events.dm:53: Inconsistent indentation.
A series of unfortunate events.dm:55: Inconsistent indentation.
A series of unfortunate events.dm:57: Inconsistent indentation.
A series of unfortunate events.dm:59: Inconsistent indentation.
A series of unfortunate events.dm:61: Inconsistent indentation.
A series of unfortunate events.dm:63: Inconsistent indentation.

A series of unfortunate events.dmb - 10 errors, 0 warnings (double-click on an error to jump to
In response to Kaioken
Kaioken wrote:
What the hell happened to all the other posts?!
Right, so I'll say it again for the 1001th or so time.

-Use input() instead of alert() which can only have 3 buttons.
-Fix up your whole indentation with the if()s under the switch() and the world outputs under the if()s.

In the other post I put input this time instead of alert..
Can you check it out?
In response to Jazzyfizzle
Indent it all one more time everything after switch. He said the ifs as well.
In response to Revojake
Revojake wrote:
Indent it all one more time everything after switch. He said the ifs as well.

verb
War_challenge()
switch(input("Whitch Village would you like to challenge?","Leaf","Sound","Sand","Grass","Rain","Cloud","mist","Rock","Snow","Waterfall"))
if("Leaf")
world << "[usr] Has challenged the Leaf Village!"
if("Sound")
world << "[usr] Has challenged the Sound Village!"
if("Sand")
world << "[usr] Has challenged the Sand Village!"
if("Grass")
world << "[usr] Has challenged the Grass Village!"
if("Rain")
world << "[usr] Has challenged the Rain Village!"
if("Cloud")
world << "[usr] Has challenged the Cloud Village!"
if("Mist")
world << "[usr] Has Challenged the Mist Village!"
if("Rock")
world << "[usr] Has challenged the Rock Village!"
if("Snow")
world << "[usr] Has Challenged the Snow Village!"
if("Waterfall")
world << "[usr] Has challenged the Waterfall Village!"



loading A series of unfortunate events.dme
A series of unfortunate events.dm:44: Inconsistent indentation.
A series of unfortunate events.dm:45: Inconsistent indentation.
A series of unfortunate events.dm:46: Inconsistent indentation.
A series of unfortunate events.dm:47: Inconsistent indentation.
A series of unfortunate events.dm:48: Inconsistent indentation.
A series of unfortunate events.dm:49: Inconsistent indentation.
A series of unfortunate events.dm:50: Inconsistent indentation.
A series of unfortunate events.dm:51: Inconsistent indentation.
A series of unfortunate events.dm:52: Inconsistent indentation.
A series of unfortunate events.dm:53: Inconsistent indentation.
A series of unfortunate events.dm:54: Inconsistent indentation.
A series of unfortunate events.dm:55: Inconsistent indentation.
A series of unfortunate events.dm:56: Inconsistent indentation.
A series of unfortunate events.dm:57: Inconsistent indentation.
A series of unfortunate events.dm:58: Inconsistent indentation.
A series of unfortunate events.dm:59: Inconsistent indentation.
A series of unfortunate events.dm:60: Inconsistent indentation.
A series of unfortunate events.dm:61: Inconsistent indentation.
A series of unfortunate events.dm:62: Inconsistent indentation.
A series of unfortunate events.dm:63: Inconsistent indentation.

A series of unfortunate events.dmb - 20 errors, 0 warnings (double-click on an error to jump to it)




Well I indented it all 1 more time lol

In response to Jazzyfizzle
Don't copy and paste ..
In response to A.T.H.K
Huh?
I didnt copy and paste that code...
Im adding more verbs to my Naruto game to make it diffrent >_>

I made that -_-
What the heck are you doing?

verb/War_Challenge()
var i = input("Whitch Village would you like to challenge?")as null|anything \
in list("Leaf","Sound","Sand","Grass","Rain","Cloud","Mist","Rock","Snow","Waterfall")
if(!i) return
world << "[usr.name] has challenged the [i] Village!"


In response to CaptFalcon33035
That code does not compute copy / paste initiated.
In response to A.T.H.K
Why won't it?
Also, you'd assume his current world << debug messages are just temporary and planned to be changed after he actually got the thing working, at any case, so no need to comment on how it's done, at least now until we see his real, finished code.
In response to Kaioken
Those messages aren't for debugging purposes. That's how it is.
In response to CaptFalcon33035
How'd ya'know that? I guess he COULD have such a thing, but making a verb just output a normal message to world makes it pointless and useless. Especially if you already have a world_say(). :O