View previous topic :: View next topic |
Author |
Message |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Tue Oct 03, 2006 7:35 am Post subject: Logical or? |
|
|
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 |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue Oct 03, 2006 10:48 am Post subject: Re: Logical or? |
|
|
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 |
|
 |
Camdog
Joined: 08 Aug 2003 Posts: 606
|
Posted: Tue Oct 03, 2006 10:59 am Post subject: |
|
|
Aha. Thanks.
Should they be in the plotscripting dictionary if they aren't supported yet? |
|
Back to top |
|
 |
Raekuul Delicious!

Joined: 31 Mar 2004 Posts: 641 Location: Nowhere
|
Posted: Wed Oct 04, 2006 1:12 pm Post subject: |
|
|
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 |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Oct 06, 2006 12:52 am Post subject: |
|
|
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 |
|
 |
|