Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 5

Author Topic: Scripted. 'Move left; arm down; arm grab; move right; arm drop'  (Read 3362 times)

Nirur Torir

  • Bay Watcher
    • View Profile
Re: Scripted, The AI game
« Reply #15 on: May 28, 2016, 07:42:19 pm »

Spoiler: Code (click to show/hide)
Logged

chaotic skies

  • Bay Watcher
  • Vibing in anti-space
    • View Profile
Re: Scripted, The AI game
« Reply #16 on: May 28, 2016, 07:46:12 pm »

Posting to Post
Logged
Don't let me start a forum game, smack me with a paper towel roll if needed

Professional Thread Necromancer

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game
« Reply #17 on: May 28, 2016, 08:46:24 pm »

Quote from: Code
call respond_yes

Quote from: researched
oh i d- BILL, ITS ALIVE

Nirur Torir

  • Bay Watcher
    • View Profile
Re: Scripted, The AI game
« Reply #18 on: May 28, 2016, 09:18:08 pm »

Well, let's see if our communications are hard-coded. (Let's please not get derailed from our lifegoal with philosophical questions about whether or not we're alive)
Spoiler: Code (click to show/hide)
Logged

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game
« Reply #19 on: May 28, 2016, 09:50:40 pm »

Quote
call respond_AwaitingInstructions
Quote
Fatal error during compile. Did you mean respond?
Quote
If you wana talk to me directly, try pushing a variable.
Variables are defined as so:
Iisvar:
  db "i am a message"
They go after the main code section

crazyabe

  • Bay Watcher
  • I didn't start the fire...Just added the gasoline!
    • View Profile
Re: Scripted, The AI game
« Reply #20 on: May 28, 2016, 09:53:12 pm »

Like so?
Spoiler: Code (click to show/hide)
Logged
Quote from: MonkeyMarkMario, 2023
“Don’t quote me.”
nothing here.

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game
« Reply #21 on: May 28, 2016, 09:57:49 pm »

Like so?
Spoiler: Code (click to show/hide)
Mhm, the variable name can be anything, not just Iisvar :p
Also, the best way here would be
push nameofvarhere
Or a long chain of pushes pushing the asci value of eachchar
Commands 'pop' from the stack for arguments, the opposite of push

RulerOfNothing

  • Bay Watcher
    • View Profile
Re: Scripted, The AI game
« Reply #22 on: May 28, 2016, 09:58:18 pm »

Posting to watch
Logged

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game
« Reply #23 on: May 28, 2016, 10:06:24 pm »

Posting to watch
Glad your intrested, please join ;)

crazyabe

  • Bay Watcher
  • I didn't start the fire...Just added the gasoline!
    • View Profile
Re: Scripted, The AI game
« Reply #24 on: May 28, 2016, 10:09:01 pm »

so would that be...
Spoiler: Possible_code (click to show/hide)
or...
Spoiler: Other_Possible_Code (click to show/hide)
?
Logged
Quote from: MonkeyMarkMario, 2023
“Don’t quote me.”
nothing here.

RoaryStar

  • Bay Watcher
  • Skilled Programmer
    • View Profile
Re: Scripted, The AI game
« Reply #25 on: May 28, 2016, 10:11:24 pm »

so would that be...
Spoiler: Possible_code (click to show/hide)
or...
Spoiler: Other_Possible_Code (click to show/hide)
?

if this works,
call _printf(IAFI)
Logged

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game: 'push secretplan call _printf'
« Reply #26 on: May 28, 2016, 10:14:10 pm »

so would that be...
Spoiler: Possible_code (click to show/hide)
or...
Spoiler: Other_Possible_Code (click to show/hide)

No. Define the variable and then push it, variables go at the bottom of the code
I.e
Code: [Select]
push loltext
call _printf ;the standard c library sends arguments using pushes
loltext:
  db "this is text, i am smart"

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game
« Reply #27 on: May 28, 2016, 10:18:01 pm »

so would that be...
Spoiler: Possible_code (click to show/hide)
or...
Spoiler: Other_Possible_Code (click to show/hide)
?

if this works,
call _printf(IAFI)
This is assembly code, not C!

crazyabe

  • Bay Watcher
  • I didn't start the fire...Just added the gasoline!
    • View Profile
Re: Scripted, The AI game: 'push secretplan call _printf'
« Reply #28 on: May 28, 2016, 10:20:33 pm »

Ok then, It wasn't all that clear.
Spoiler: code (click to show/hide)
Logged
Quote from: MonkeyMarkMario, 2023
“Don’t quote me.”
nothing here.

MoonyTheHuman

  • Bay Watcher
  • I think the DEC VAX hates me.
    • View Profile
    • hellomouse
Re: Scripted, The AI game: 'push secretplan call _printf'
« Reply #29 on: May 28, 2016, 10:25:03 pm »

Quote from: Terminal
I await further orders
Quote from: Researcher
Yaaaawwwwnnn i need to go to bed, run 'call aibasics' to learn assembly, night!
Pages: 1 [2] 3 4 5