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
Skybreak v. 1.4
The Fortress of Fear
Starship Quest
The Axe of Kolt
The PK Girl
Skybreak v 1.2
Steve Van Helsing: Process Server
The Dwarf of Direwood Forest
Marika the Offering
The Lost Labyrinth of Lazaitch
 
Latest Forum Posts
Race against Time (RaT)
Comp for already released short 2023 games
HAPPY BIRTHDAY P/o Prune!
David W's works in progress
Really out there project needs some guidance
IF Comp 2023
HAPPY BIRTHDAY Andrew F & Denk
Status of ADRIFT 5 online player and other platforms
SeedComp 2023/2024
Has anyone else gotten an error when installing ADRIFT 5?
 
Latest Reviews
Classic Adventure
Private Eye
Roozden's Color Code Module
Wumpus Hunt
Lost Coastlines
The Lost Labyrinth of Lazaitch
October 31st (Post comp.)
The Euripides Enigma
AI
Hint System Library - Release 1

Make a donation

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