Building battle royale game - 46% complete, need help. [Solved]
Sh4dowGaming1234
19 May 2019, 05:24Hi 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.
hegemonkhan
19 May 2019, 07:08quest 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
Sh4dowGaming1234
19 May 2019, 08:17Thanks a lot.
I know about the strictness of coding.
Thanks a lot!
This is your reward:
Sh4dowGaming1234