Author Topic: SOLVED: Script behaving oddly [solved]  (Read 683 times)

Tenko Kuugen

  • Public Enemy
  • No life
  • *
  • Posts: 1427
  • Karma: 0
    • View Profile
    • Twitter
SOLVED: Script behaving oddly [solved]
« on: 2012-09-02 16:58:28 »
edit: apparently it didn't like using variables that high for the gil count

Code: [Select]
Instantly turns the field model to face the party member #0
Deactivate the movability of the playable character
Disables access to the main menu
If Var[15][24] == 1 (else jump to byte 29)
Resizes/Repositions the window #2 (X=40, Y=120, width=238, height=57)
Displays the dialog ""Get out of my face."" in the window #2
Reset the window #2
Jump to byte 262
If $GameMoment < 191 (else jump to byte 54)
Resizes/Repositions the window #2 (X=40, Y=120, width=238, height=57)
Displays the dialog "“Are you interested? You seem a lit... But not now. The don is watching."" in the window #2
Reset the window #2
Jump to byte 262
If $GameMoment == 191 (else jump to byte 237)
If $KeyItems & (1<< 4) (else jump to byte 85)
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=57)
Displays the dialog ""Thanks for your business. hehe... you won't regret it..."" in the window #2
Reset the window #2
Jump to byte 262
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=57)
Displays the dialog ""Hey... listen. I saw you ask about.... hehe... If you know what I mean."" in the window #2
Reset the window #2
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=73)
Ask Question ""So how about it? The card is 2,000...'ll buy it Give it to me or else..." in the window #2 (and put selected answer in Var[15][76]) first line=2, last line=3
If Var[15][76] == 2 (else jump to byte 207)
Copies the amount of gil in Var[6][8] and Var[6][10]
If Var[6][10] == 0 (else jump to byte 160)
If Var[6][8] < 2000 (else jump to byte 160)
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=57)
Displays the dialog ""You don't even have any money! Come back when you do."" in the window #2
Reset the window #2
Jump to byte 262
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=57)
Displays the dialog ""Thanks for your business. hehe... you won't regret it..."" in the window #2
Reset the window #2
Remove 2000 gils to the party
Play sound #360 (position=64/127)
Resizes/Repositions the window #0 (X=85, Y=10, width=133, height=41)
Displays the dialog "Received Key Item [Member's Card]!" in the window #0
Set the 4 bit to 1 in $KeyItems
Reset the window #0
Jump to byte 262
If Var[15][76] == 3 (else jump to byte 237)
Var[15][24] = 1 (16-bit)
Resizes/Repositions the window #2 (X=40, Y=120, width=263, height=57)
Displays the dialog ""Threatening me? You must be f*ckin...on't get that, get out of my face."" in the window #2
Reset the window #2
Jump to byte 262
If $GameMoment == 192 (else jump to byte 262)
Resizes/Repositions the window #2 (X=40, Y=120, width=145, height=41)
Displays the dialog "“Say{, }you're a cutie, heh{, }heh{, }heh.”" in the window #2
Reset the window #2
Jump to byte 262
Activate the movability of the playable character
Enables access to the main menu
Return

It looks fine to me but if I try it, it always returns as having no money despite having 18000 gil
any idea why?
« Last Edit: 2012-09-02 17:11:33 by KuugenTheFox »