![]() |
How to set a Global (Random) Integer? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: How to set a Global (Random) Integer? (/thread-20729.html) |
How to set a Global (Random) Integer? - ehovda321 - 03-13-2013 Would this work? SetGlobalVarInt("buy_a", RandInt(7, 12)); SetGlobalVarInt("buy_b", RandInt(8, 14)); SetGlobalVarInt("buy_c", RandInt(3, 7)); SetGlobalVarInt("buy_d", RandInt(2, 6)); I want to set each GlobalVarInt to a Random Integer. Thank you! ![]() RE: How to set a Global (Random) Integer? - NaxEla - 03-13-2013 Yes, that would work. Also, here's a tip: when you are scripting (or just programming in general) and you're not sure if something will work, just try it. It's not like you're computer will go up in flames if it doesn't work. |