Get, Set, Query! Any variable in WA with a single object :D

The Wonderland Open Source Project

Moderators: ILoveWonderland, Sammy_P, Lazy Loof

Post Reply
User avatar
nasko222
Rainbow Master
Posts: 591
Joined: Sat Jul 07, 2018 1:22 pm

Get, Set, Query! Any variable in WA with a single object :D

Post by nasko222 » Sun Mar 10, 2024 6:48 pm

Nasko branch is back LOL (somewhat)

I added a new item that will change WA forever, I call it Variable conditioning, and also Integer Setter, It can get almost all integers in the WA executable, check them if they are less, equal, greater or NOT equal, and execute a command depending on the outcome

Usage for variable conditioning

Data0: Variable ID
Data1: Additional parameter (p)
Data2: Value to Check
Data3: Condition check, 0 less, 1 less or equal, 2 equal, 3 more or equal, 4 more, -1 NOT equal
Data4: Command to activate when criteria met
Data5: Command Data0
Data6: Command Data1
Data7: Command Data2
Data8: Command Data3
Data9: Repeatable? (0 yes, 1 only once, 2 inactive)
Data10: Additional parameter (p2)

Usage for integer setter

Data0: Variable ID
Data1: Additional parameter (p)
Data2: Additional parameter (p2)
Data4: Value to Set
Data9: Repeatable? (0 yes, 1 only once, 2 inactive)

Here's the ID table of integers you can get set and query :D

ID:0 GameMode
ID:1 OldGameMode
ID:2 LevelTimer
ID:3 AdventureTimer

ID:5 LightRed
ID:6 LightGreen
ID:7 LightBlue

ID:10 DelayCommand
ID:11 DelayData1
ID:12 DelayData2
ID:13 DelayData3
ID:14 DelayData4

ID:20 CurrentReplayAdventure

ID:21 SpellActive
ID:22 CurrentSpell
ID:23 CurrentCharm
ID:24 CurrentSpellPower
ID:25 CurrentLightPower
ID:26 HomingActive
ID:27 IndigoActive
ID:28 PlayerLavaTimer

ID:30 NofWeeStinkersInAdventure
ID:31 NofWeeStinkersFollowing
ID:32 NofWeeStinkersFollowingLast
ID:33 NofScrittersInAdventure
ID:34 NofCrabsInAdventure
ID:35 NofFireFlowersInAdventure
ID:36 NofZBotsInAdventure
ID:37 NofZBotNPCsInAdventure
ID:38 NofGemsInAdventure
ID:39 NofBricksInAdventure
ID:40 NofBabyBoomersInAdventure

ID:41 NofFloingBubbles
ID:42 GlobalGrowFlowerCounter
ID:43 GlobalFloingBubbleCounter

ID:46 LevelMusic
ID:47 LevelWeather
ID:48 LightningStorm
ID:49 PlayerLevelStartingYaw

ID:51 PlayerObject
ID:52 StinkerObject
ID:53 PlayerTalkToGoalObject
ID:54 LastPlayerControl

ID:61 PlayerTextureBody
ID:62 PlayerAcc1
ID:63 PlayerAcc2
ID:64 PlayerTexAcc1
ID:65 PlayerTexAcc2
ID:66 PlayerVoice
ID:67 PlayerPitch

ID:72 MapPieceFound(p)
ID:73 MysteryNumber(p)
ID:74 WA3BlueFlower
ID:75 WA3BlueFlowerStatus

ID:80 PlayerCoins
ID:81 PlayerCoinsCollected
ID:82 PlayerGems
ID:83 PlayerStars
ID:84 PlayerScore

ID:85 InventorySize
ID:86 NofInventoryItems

ID:90 InventoryItem(p)
ID:91 InventoryID(p)
ID:92 InventoryTexture(p)
ID:93 InventorySwapItem
ID:94 InventorySwapIcon

ID:101 ShardsAreActive
ID:102 ShardHitCounter
ID:103 ShardLastHit
ID:104 ShardMelodyTimer
ID:105 ShardMelody(p)

ID:110 AdventureCompleted(p)
ID:111 AdventureCompletedTime(p)
ID:112 AdventureCompletedGems(p)
ID:113 AdventureCompletedGemsTotal(p)
ID:114 AdventureCompletedCoins(p)
ID:115 AdventureCompletedCoinsTotal(p)
ID:116 AdventureCompletedScore(p)
ID:117 AdventureSecretStar(p)

ID:120 CurrentAdventureGems
ID:121 CurrentAdventureCoins
ID:122 CurrentAdventureTime
ID:123 CurrentAdventureScore

ID:124 ReplayAdventureGemsBetter
ID:125 ReplayAdventureCoinsBetter
ID:126 ReplayAdventureScoreBetter

ID:127 PreReplayAdventureLevel
ID:128 PreReplayAdventureX
ID:129 PreRePlayAdventureY

ID:150 IsThereAFlipBridge
ID:151 CageBlinking
ID:152 MOFIAlphaGrowFlower
ID:153 NegativeDestructive
ID:154 WA1BRR
ID:155 WA096Fireproof
ID:156 LegacyPOWCheck

ID:201 LevelTileLogic(p,p2)
ID:202 ObjectTileLogic(p,p2)
ID:203 FlipBridgeTile(p,p2)
ID:204 FlipBridgeHeight(p,p2)

ID:211 AStarOpen(p)
ID:212 AStarF(p)
ID:213 AStarG(p)
ID:214 AStarH(p)
ID:215 AStarParent(p)
ID:216 AStarX(p)
ID:217 AStarY(p)
ID:218 AStarGrid(p,p2)
ID:219 AStarPathNode(p)

Here are few examples with variable conditioning

If GameMode=5 Then ActivateCommand(2,500) Else ActivateCommand (1,500) (Gamemode 5 is rucksack being opened)
https://youtu.be/0jPedaNpOfQ

If CurrentSpell=6 And CurrentSpellPower=1 Then ActivateCommand (2,530) Else ActivateCommand (1,530) (and done for all doors)
https://youtu.be/zWmApH0rCM8

If NofBabyBoomersInAdventure=33 Then ActivateCommand (2,525) (and done for the rest of the doors)
https://youtu.be/U8HGl-AI810

And some examples of integer setter

PlayerLavaTimer=600, PlayerLavaTimer=400, PlayerLavaTimer=0
https://youtu.be/ph8x00rg4fo

If CurrentCharm=1 Then LevelRed=250
ElseIf CurrentCharm=3 Then LevelBlue=250
Else LevelRed=0, LevelBlue=0
https://youtu.be/by3PF8QKsAY

WA is now officially a game engine :stinkyhappy: :stinkyhappy: :stinkyhappy: The gimmicks are endless...................
User avatar
Jutomi
Rainbow AllStar
Posts: 4368
Joined: Tue Oct 15, 2013 8:42 pm

Re: Get, Set, Query! Any variable in WA with a single object :D

Post by Jutomi » Mon Mar 11, 2024 12:07 am

Yoo....

words can not describe how cool this is...
Your only little stinker that's absolutely NOT a z-bot by this name,
Jutomi~ :mrgreen:

Also, if you want to see my level list, here it is! :D
(Also: List of Hubs, WA Manual)
Oh, and my YT wonderland channel. Forgot about that.
User avatar
Sammy_P
Rainbow SuperStar
Posts: 2888
Joined: Fri May 11, 2007 9:01 pm
Location: map ref 41°n 93°w
Contact:

Re: Get, Set, Query! Any variable in WA with a single object :D

Post by Sammy_P » Mon Mar 11, 2024 12:18 am

I love how normal this game is! It's remained conventional and accessible for kids for generations.

Real talk though: It's crazy that this was the catalyst for wherever the hell we are now. Thank you Senator for your hard work at making this game more nuts than it already is.
User avatar
nasko222
Rainbow Master
Posts: 591
Joined: Sat Jul 07, 2018 1:22 pm

Re: Get, Set, Query! Any variable in WA with a single object :D

Post by nasko222 » Mon Mar 11, 2024 8:40 am

Sammy_P wrote:
Mon Mar 11, 2024 12:18 am
It's crazy that this was the catalyst for wherever the hell we are now.
We still dont have the march of the stinkers build AAAAAAA
Post Reply