 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Jul 15, 2011 10:37 pm Post subject: |
|
|
In this case the error message is perfectly clear: "check tag" only takes a single argument. But of course I don't blame you for assuming it takes two, because noone in this thread pointed out this obvious error!
Code: | plotscript, what class am I, begin
if (check tag(4)) then(
$1="Tech Warrior"
)
if (check tag(5)) then(
$1="Tech Mage"
)
if (check tag(6)) then(
$1="Tech Rouge"
)
end |
By the way msw: I have no idea why you insist on putting a comma after the if condition, but I'll warn you that in future versions of HSpeak it might become necessary to throw errors when stray commas are encountered, due to ambiguities created by new syntax! _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
mswguest Guest
|
Posted: Sat Jul 16, 2011 5:58 am Post subject: |
|
|
Hm, I feel like in the distant past it was done that way somewhere. Or at least shown that way. Either in the plotscripting dictionary or tutorial, as:
if (condition), then
Or is it possible that this is the syntax in Visual Basic? I took one CMPSCI course my freshman year in college where we used Visual Basic. I remember not liking the class very much. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|