Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
The PK Girl
Ghost Town
The Fortress of Fear
Emily
the virtual human
Top Hat
Give Me your Lunch Money 2010
The Lost Children
Die Feuerfaust
The Spectre of Castle Coris
 
Latest Forum Posts
What would you guys consider a harder, or a tougher game?
Referencing the value of a character user defined property
How to Get an NPC to Take an Object?
Weird Conversation Bug: Ignoring/Conversing at Same Time
How important are puzzles?
Tingalan
Reset Variables?
Player Char takes object too easily
NEW GAME - "The Axe of Kolt"
Default - Display only once problem
 
Latest Reviews
The Lost Children
The Fortress of Fear
The Warlord, The Princess & The Bulldog
Die Feuerfaust
The Spectre of Castle Coris
The Dragon Diamond
The Axe of Kolt
Greek School Adventure
All Through the Night
Ghost Town

Make a donation

Get it from CNET Download.com!
Cursor  Expressions can't subtract a negative number

Issue Type: Status: Priority: Date Submitted: Votes:
Bug Completed Critical Thu 12th Dec 2013 2 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.31.4 Sat 22nd Feb 2014 5.0.32 Sat 22nd Feb 2014 Log In
 
saabieThu 12th Dec 2013 13:42
I was using the following function:
%NumberAsText[%Player%.Location.s_FloorNum-%number%]%
But if %number% is negative then it gives a "bad expression" ADRIFT error:
%Player%.Location.s_FloorNum--%number%

Putting brackets around %number%:
%NumberAsText[%Player%.Location.s_FloorNum-(%number%)]%
did not work either.
 
CampbellSat 22nd Feb 2014 17:18
Expressions themselves can handle this ok, the problem is with Item Functions. It was reading - as a continuation of the function name, and failing to parse. Fixed.
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster