ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Absolute Reference

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Absolute Reference

Postby Eminor » Wed Jul 16, 2014 4:20 pm

Hey guys :)

May I ask you kindly to correct the following string for me? I've been trying a few ways but I cannot seem to get it right, all I need is for the result to be absolute.

A task Action is executing -> SET VariableX = ABS(%VariableY[RAND(1,10)]%)

Of course VariableY, which is -1 keeps howing up as -1 instead of 1.

I know.. I know.. I'm a pitiful noob xD... You have my blessings to make fun of me until the end of time :haha:


EDIT

UPS! I'm actally aplpying ABS in the wrong place since I need VariableX to be ABS... Don'y know how to do that, but I'll have a look now.

EDIT

Mmhh... I tried applying ABS straight on the status bar where I call the function but it didn't work, not sure it can even be done from there.

EDIT

AHAhahahahaha, oh my god... I added an action SET Variablex = *(-1) thinking how smart I was... Now the ranner hoplessly freezes and crashes when I run the task :lol: I think even IT is bored to the bolne of my ignorance xD rofl

EDIT

Did it! I added an action SET Variablex = ABS(%HackTimerDeciSeconds%) to the same task.

So now the task first picks a random value from the array VariableY (SET VariableX = ABS(%VariableY[RAND(1,10)]%))
and THEN converts it to absolute (SET Variablex = ABS(%HackTimerDeciSeconds%))

Thanks anyway guys, :) even if noone can answer on time it jiggles my mind to find a solution even just to ask about it knowing that someone might benefit from my problems some time in the future. :comb:

OR MAYBE I'm the absolute king of noobs and this stuff will only be of interest when monkeys will take over the earth and will want to learn about the shiny boxes with letters and numbers that can be pressed on them! xD rofl
Eminor
 
Posts: 27
Joined: Sat Jul 12, 2014 12:08 pm

Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 3 guests