Building battle royale game - 46% complete, need help. [Solved]

Hi again.

This is now my fourth post LOL!

So, with the searchscript on the quest documentation (https://docs.textadventures.co.uk/quest/zombie-apocalypse-2.html)

I search a dead object and I get the random (1-50) money, but it gives this:

Error running script: Error compiling expression 'randomChance(85)': FunctionCallElement: Could find not function 'randomChance(Int32)'

Help me please!

P.S Whoever helps me will get a special benefit when the game comes out.


quest is upper-lower case sensitive

the correct built-in function is:

http://docs.textadventures.co.uk/quest/functions/corelibrary/randomchance.html

RandomChance (INTEGER_VALUE_OF_0_to_100_or_VARIABLE_STORING_SUCH_VALUE)

you got a lower-case 'r', which is not the built-in 'RandomChance' Function:

randomChance(85) // Error: there is no built-in 'randomChance' Function

programming requires (and thus makes you) into a "grammar, typing, and spelling nazi", having 100% error free content. Coding teaches/forces you to really spot typos, at 100% success rate... lol


Thanks a lot.

I know about the strictness of coding.
Thanks a lot!

This is your reward:

LootHelpCode8294
Type it exactly like in the spoiler.

Sh4dowGaming1234


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums