
-----------------------------------
TWizard
Wed Jun 30, 2010 3:25 am

Trying to call varuables from another source.
-----------------------------------
What is it you are trying to achieve?
Im trying to finish up on a game i started and wanted to know
if there was a way to call varuables from a procedure or
a file so i could make it more flexible or update varuables that
where already called above

What is the problem you are having?
My problem is calling varuables above from a file or a procedure
"I already know if a varuable is called in a procedure it can not
be called out side the procedure".

Describe what you have tried to solve this problem
iIwas trying to learn more on how to load files from other places
that and I was trying to look around useing a function,process,
class.

Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Look aside the picture and music. Thats as small as i could get it.



= player_soldiers (number2) then
        player_soldiers (number1) := player_soldiers (number1) - player_soldiers (number2)
        player_soldiers (number2) := 0
        fork Sound_Defended
        delay (250)
    end if
    if player_soldiers (number2) >= player_soldiers (number1) then
        player_soldiers (number2) := player_soldiers (number2) - player_soldiers (number1)
        player_soldiers (number1) := 0
        fork Sound_Lost
        delay (250)
    end if
    if player_soldiers (number1) >= 0 then
        male (number2) := male (number2) - player_soldiers (number1) div 2
        female (number2) := female (number2) - player_soldiers (number1) div 2
    end if
    if male (number2) 