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.2
The Dwarf of Direwood Forest
The Dragon Diamond
The PK Girl
Die Feuerfaust
Starship Quest
Magnetic Moon
The Axe of Kolt
The Fortress of Fear
I Summon Thee!
 
Latest Forum Posts
Combi-Lib 4.3(beta) ready for testing
Virus problem still around
2020 Xyzzy Awards winners announced 8th of October
Taking an object
PUT ALL problem
How do I avoid stripping when player uses put all in object?
Combi-Lib 4.2 Released
Sir Clive Sinclair dies at aged 81
HAPPY BIRTHDAY Campbell
It puzzles me ;-)
 
Latest Reviews
The Dwarf of Direwood Forest
Return To Castle Coris
Alien Diver v15
The Axe of Kolt
Illumina
A Difficult Puzzle
The Garden Party
P/o Prune's mini comp.
I Summon Thee!
Sophia or Wisdom Defined

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