[CD3.55] Problems with updating a manipulation .txt file for inegrals.

smoochy boys on tour

Skelucia

Dedicated Member
Dedicated Member
Jul 5, 2013
72
0
32
[@Main]
#IF
#ACT
LoadValue D3 "QuestDiary\Manipulation\IntegralSystem.txt" Integ %USERNAME
#IF
#SAY
{FCOLOR/14}Welcome to The Integral System!!\
{FCOLOR/14}-----------------------------------\


;Name: {FCOLOR/1}<$USERNAME>{FCOLOR/12}\
IntegralPoints= {FCOLOR/1}[ <$OUTPUT(D3)> ]\\
IntegralStore <[---]/@SHOP>\\
AddIntegrals <[---]/@ADD>\\


#IF
!CheckNameList IntegralSystem.txt
#ACT
AddNameList IntegralSystem.txt
SaveValue "QuestDiary\Manipulation\IntegralSystem.txt" Integ %USERNAME 0




[@ADD]


#SAY
Would You like to add Integrals to your Inegral Bank account?\\


Add Integral(S)?< Add/@small>\\


Add Integral(M)?< Add/@medium>\\


Add Integral(L)?< Add/@large>\\


#ELSESAY






[@small]
#IF
CHECKITEM Integral(S) 1
#ACT
TAKE Integral(S) 1
LoadValue D3 "QuestDiary\Manipulation\IntegralSystem.txt" Integ %USERNAME
SaveValue %D3 +1
goto @smallaccept
#ELSESAY
Noob.\\




Ive also tries SAVEVALUE and UPDATEVALUE and no luck it just stays as 1 and doesnt add it to the total?
Any help is good thanks.
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
145
Manchester, UK
[@Main]
#IF
#ACT
LoadValue D3 "QuestDiary\Manipulation\IntegralSystem.txt" [Integ] %USERNAME
#IF
#SAY
{FCOLOR/14}Welcome to The Integral System!!\
{FCOLOR/14}-----------------------------------\

Name: {FCOLOR/1}<$USERNAME>{FCOLOR/12}\
IntegralPoints= {FCOLOR/1}[ <$OUTPUT(D3)> ]\\
IntegralStore <[---]/@SHOP>\\
AddIntegrals <[---]/@ADD>\\

#IF
!CheckNameList IntegralSystem.txt
#ACT
AddNameList IntegralSystem.txt
SaveValue "QuestDiary\Manipulation\IntegralSystem.txt" [Integ] %USERNAME 0

[@ADD]
#SAY
Would You like to add Integrals to your Inegral Bank account?\\
Add Integral(S)?< Add/@small>\\
Add Integral(M)?< Add/@medium>\\
Add Integral(L)?< Add/@large>\\
#ELSESAY

[@small]
#IF
CHECKITEM Integral(S) 1
#ACT
TAKE Integral(S) 1
LoadValue D3 "QuestDiary\Manipulation\IntegralSystem.txt" [Integ] %USERNAME
INC D3 1
SaveValue "QuestDiary\Manipulation\IntegralSystem.txt" [Integ] %USERNAME %D3
goto @smallaccept
#ELSESAY
Noob.\\

Try that, you made quite a few mistakes but using that should work.
 
Upvote 0