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

Logical or?

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Tue Oct 03, 2006 7:35 am    Post subject: Logical or? Reply with quote

The new logical or operator doesn't seem to be working for me. Whenever I try to compile my script, HSpeak gives me an error for the following line of code:

Code:
if ( (get user data(enemyId, ACTION) == DODGE_SUCCESS) || (get user data(enemyId, ACTION) == DODGE_FAILURE) ) then(


The error is "Unrecognized name ||" "get user data" is a user defined script, enemyId is a global variable, and the tokens in all caps are constants.

I'm using Hasta la QB+. Am I just totally misunderstanding how to use the logical or? Thanks.
Back to top
View user's profile Send private message
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue Oct 03, 2006 10:48 am    Post subject: Re: Logical or? Reply with quote

Camdog wrote:
I'm using Hasta la QB+. Am I just totally misunderstanding how to use the logical or? Thanks.


The new logical boolean operators do not exist in Hasta-la-qb+. They are new for ubersetzung. If you need to use them now, you should use a recent nightly build.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Camdog




Joined: 08 Aug 2003
Posts: 606

PostPosted: Tue Oct 03, 2006 10:59 am    Post subject: Reply with quote

Aha. Thanks.

Should they be in the plotscripting dictionary if they aren't supported yet?
Back to top
View user's profile Send private message
Raekuul
Delicious!




Joined: 31 Mar 2004
Posts: 641
Location: Nowhere

PostPosted: Wed Oct 04, 2006 1:12 pm    Post subject: Reply with quote

They should be marked as "not available in most recent stable" or "nightly build (ddmmyyyy) only"
_________________
A broken clock is still right twice a day.
Back to top
View user's profile Send private message Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Fri Oct 06, 2006 12:52 am    Post subject: Reply with quote

The online plotscripting dictionary is uploaded with the nightlies. This is because the nightly builds don't come with the dictionary included. If you're worried about confusing WIP and last stable script commands, refer to your offline version instead.

You should download the lastest build of HSpeak too. While in the specific case of the logical operators Hspeak has recognised || etc for several versions, mixing different versions of plotscr.hsd, hspeak, new vs old style scripts, custom and game will probably lead to errors.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
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