CoSMOS Gamehacking Tool
Page 1 of 1
Signup or Login to Post
Setting values outside the script?
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to ZetaBite
    ELITE
    ZetaBite posted on Feb 02, 2018 2:08:12 PM - Report post
     
    Good day fellow CoSMOS users.

    A small question about script making follows:

    Lets assume I found the address of the value I want to change via script.
    Lets assume that I changed that value to 100 and all is good.
    However, what if I want to change the value depending on the situation?
    Is it possible to dynamically change the value?

    I.E. is it possible to change script values from OUTSIDE the script?

    Thank you very much for you time,
    ZetaBite
  • Trainer Maker
    Send a message to 0x90
    STAFF
    0x90 posted on Feb 02, 2018 4:44:23 PM - Report post
     
    Yes, you need to store the value using a symbol and register this symbol so it becomes global. Always remember to unregister the symbol on disable section and never register two symbols with the same name.

    I've attached an example script. Let me know if you have any further questions.
    CoSMOS Script Attachment  (0MB)  .  downloaded 8 times.
        ⌊ Requires CoSMOS Gamehacking Tool  
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to ZetaBite
    ELITE
    ZetaBite posted on Feb 03, 2018 12:31:25 AM - Report post
     
    I'll look at your script.
    Thank you very much for your help.
Page 1 of 1
Signup or Login to Post
All times are (GMT -06:00) Central Time (US & Canada). Current time is 12:58:34 PM