Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Variableized Classes?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Fri Jul 15, 2011 10:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mswguest
Guest






PostPosted: Sat Jul 16, 2011 5:58 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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