BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» Die Rückkehr zu STEAM und WARFACE
How Do I Make Else-If and Nested If Statements in Gecko? EmptyYesterday at 3:54 am by Seth@WiiPlaza

» (Zombies) Drink perks code?
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/28/2024, 8:34 am by Bully@WiiPlaza

» First person hand model change?
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/21/2024, 8:52 am by naxil

» FREE Language-Learning YouTube Channel, Best Way to Learn Language
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/19/2024, 10:40 am by SnB@BWH

» Need help to get command line console code to work
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/19/2024, 6:41 am by Bully@WiiPlaza

» Secret CODZ maps in files (verruckt nacht Shi and Der riese)
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/19/2024, 6:38 am by Bully@WiiPlaza

» ERROR on the server error no. 20000
How Do I Make Else-If and Nested If Statements in Gecko? Empty2/19/2024, 6:33 am by Bully@WiiPlaza

»  YouTube.Auto1337.Firefox-8.1f
How Do I Make Else-If and Nested If Statements in Gecko? Empty1/24/2024, 6:57 am by Seth@WiiPlaza

» GCN Action Replay To Gecko CodeType Converter
How Do I Make Else-If and Nested If Statements in Gecko? Empty1/22/2024, 1:41 pm by SnB@BWH

Search
 
 

Display results as :
 


Rechercher Advanced Search

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

How Do I Make Else-If and Nested If Statements in Gecko?

2 posters

Go down  Message [Page 1 of 1]

Reclaimer Shawn

Reclaimer Shawn
Code Creator

I know Gecko Codetype 20 is a 32-bit if comparison and I know 28 is a 16-bit if comparison.

Let's say I wanted to have two if statements met before exeucting a code, and otherwise, execute other code. Here's what I'm wanting to do in pseudocode:

Let X, Y, and Z be memory adresses.

Code:

If X = 0x49 and Y = 0x49 then
 Z = 0x1A1
else
 Z = 0xF9
end

Another way to represent this would be:

Code:

If X = 0x49 then
 If Y = 0x49 then
  Z = 0x1A1
 else
  Z = 0xF9
 end
else
 Z = 0xF9
end

How do I represent that in Gecko Code? I have done this properly with a C0 code that works 100% of the time, but I might be able to shorten the code if done in Gecko instead of ASM.

Bully@WiiPlaza

Bully@WiiPlaza
 
 

Pretty good question, exactly what crossed my mind before with those "simple" codetypes, so I think you can't do that...
This is rare enough that you would need to resort to ASM.
The codetypes are not a "full" programming language but they cover most use cases. Wink


_________________
How Do I Make Else-If and Nested If Statements in Gecko? YBjg74I

Reclaimer Shawn

Reclaimer Shawn
Code Creator

Bully@WiiPlaza wrote:Pretty good question, exactly what crossed my mind before with those "simple" codetypes, so I think you can't do that...
This is rare enough that you would need to resort to ASM.
The codetypes are not a "full" programming language but they cover most use cases. Wink

Honestly, if the game doesn't freeze from it, it seems that using the C0 Codetype is actually preferably than using the other Gecko Codetypes in most cases. ASM is a lot more versatile. Guess I'll just leave the basic comparisons and basic operations to Gecko codetypes and then let the rest be in ASM. Thanks for telling me it wasn't possible.

I was wanting to do a nested If-statement for a Pokemon XD code, but I already did it with a C0 codetype and released it on the forum. It's as the C0 Codetype bugfix in my Shadow Pokemon code.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum