Difference between revisions of "0x0024"

From SimsWiki
Jump to: navigation, search
(Using the Instruction Wizard)
Line 9: Line 9:
 
==Using the Instruction Wizard==
 
==Using the Instruction Wizard==
 
[[Image:DialogInstructionWizard.JPG|frame|Dialog Instruction Wizard]]
 
[[Image:DialogInstructionWizard.JPG|frame|Dialog Instruction Wizard]]
 +
This wizard allows you to choose the type of dialog you want (see the table below) and then configure various things about that dialog depending on the type you chose. Things that do not apply to your chosen dialog type, are hidden on the wizard, so do not worry if it doesn't look exactly like the picture. For many of the dialog types, the main things to be chosen are the strings used for Title, Message and buttons. These strings are taken from Text List (STR#) resource 0x0000012D (see [[STR#STR.23|String Resources]] for all the different Text List usages). The wizard allows you to pick the string from a pop-up window, so you don't have to remember that line 0x00 in the text list is "01" in the operands field, line 0x01 is "02", and so on.
  
 +
<br clear="all"/>
  
These are the necessary operands for 0x0024 in Node Version 0x00:
+
{| class="wikitable"
 
+
|+'''Dialog Types'''
Byte 0: Text on "Cancel"-button
+
|-
Byte 1:
+
!Num!!Dialog Type
Byte 2: Text of the message itself
+
|-
Byte 3: Text on "Yes"-button
+
|00||Message
Byte 4: Text on "No"-button
+
|-
Byte 5: Determines the type of the message (*)
+
|01||yes-no message
Byte 6: Text of title, if a title should be displayed
+
|-
Byte 7: wait / don't wait for user
+
|02||yes-no-cancel message
        00 = wait for user
+
|-
        01 = don't wait for user
+
|03||text entry
 
+
|-
0x0024 refers to the STR# 0x0000012D ( = Text List ). Please remember that line 0x00 in the text list is "01" in the operands field, line 0x01 is "02", and so on.
+
|04||tutorial
 
+
|-
 
+
|05||Phone Book - Services
(*) These are the types of messages that I found out so far (taken from EP 1 to EP 4). Depending on this type, certain bytes may be filled or simply left with "00":
+
|-
00: Message
+
|06||Phone Book - Invite
01: yes-no message
+
|-
02: yes-no-cancel message
+
|07||Phone Book - Party
03: text entry
+
|-
04: tutorial
+
|08||Text Notification
05: Phone Book - Services
+
|-
06: Phone Book - Invite
+
|09||Stop Text Notification
07: Phone Book - Party
+
|-
08: Text Notification
+
|0A||Text Notification Modify
09: Stop Text Notification
+
|-
0A: Text Notification Modify
+
|0B||Magazine Rack
0B: Magazine Rack
+
|-
0C: Jewelry Rack
+
|0C||Jewelry Rack
0D: VideoGame Rack
+
|-
0E: Food Rack
+
|0D||VideoGame Rack
0F: Special Phone Services
+
|-
10: Clothing Purchase
+
|0E||Food Rack
11: Clothing Selection
+
|-
12: Tutorial Task
+
|0F||Special Phone Services
13List Selection
+
|-
14: Clothing Try On
+
|10||Clothing Purchase
15: Vanity Table
+
|-
16: TutorialNext
+
|11||Clothing Selection
17: Baby Name
+
|-
18: Set Aspiration
+
|12||Tutorial Task
19: TutorialNext Modal
+
|-
1A: Set Major
+
|13||List Selection
1B: Resurrectonomitron
+
|-
1C: Fire Forget Append
+
|14||Clothing Try On
1D: Move Grave To Lot
+
|-
1E: Visit Another Lot
+
|15||Vanity Table
1F: Dating Services
+
|-
20: Manage Groups
+
|16||TutorialNext
21: Phone Groups
+
|-
22: Set Turn On/Off's
+
|17||Baby Name
23: Customize Your Craftable
+
|-
24: Sims Available for Hire
+
|18||Set Aspiration
25: Choose a Lot to Purchase
+
|-
26: Choose a Lot to Transfer Ownership: [none]
+
|19||TutorialNext Modal
27: Choose a Lot
+
|-
28: Set Price
+
|1A||Set Major
29: Plan Business Outfit
+
|-
2A: Buy Food
+
|1B||Resurrectonomitron
2B: Make Selection (Stock Remaining)
+
|-
2C: "
+
|1C||Fire Forget Append
2D: "
+
|-
2E: Buy Clothing
+
|1D||Move Grave To Lot
2F: unknown (blank)
+
|-
30: Set Wage
+
|1E||Visit Another Lot
31: Suggest an Outfit
+
|-
32: Would you like to hire?
+
|1F||Dating Services
33: Unknown
+
|-
34: Unknown
+
|20||Manage Groups
35: Unknown
+
|-
36: Unknown
+
|21||Phone Groups
37: Unknown
+
|-
38: Unknown
+
|22||Set Turn On/Off's
39: Unknown
+
|-
3A: Unknown
+
|23||Customize Your Craftable
3B: Unknown
+
|-
3C: Unknown
+
|24||Sims Available for Hire
3D: Unknown
+
|-
3E: Unknown
+
|25||Choose a Lot to Purchase
3F: Unknown
+
|-
40: Unknown
+
|26||Choose a Lot to Transfer Ownership: [none]
41: Stock Fresh Produce (Found in Juicer)
+
|-
 +
|27||Choose a Lot
 +
|-
 +
|28||Set Price
 +
|-
 +
|29||Plan Business Outfit
 +
|-
 +
|2A||Buy Food
 +
|-
 +
|2B||Make Selection (Stock Remaining)
 +
|-
 +
|2C||"
 +
|-
 +
|2D||"
 +
|-
 +
|2E||Buy Clothing
 +
|-
 +
|2F||unknown (blank)
 +
|-
 +
|30||Set Wage
 +
|-
 +
|31||Suggest an Outfit
 +
|-
 +
|32||Would you like to hire?
 +
|-
 +
|33||Unknown
 +
|-
 +
|34||Unknown
 +
|-
 +
|35||Unknown
 +
|-
 +
|36||Unknown
 +
|-
 +
|37||Unknown
 +
|-
 +
|38||Unknown
 +
|-
 +
|39||Unknown
 +
|-
 +
|3A||Unknown
 +
|-
 +
|3B||Unknown
 +
|-
 +
|3C||Unknown
 +
|-
 +
|3D||Unknown
 +
|-
 +
|3E||Unknown
 +
|-
 +
|3F||Unknown
 +
|-
 +
|40||Unknown
 +
|-
 +
|41||Stock Fresh Produce (Found in Juicer)
 +
|}
  
 
Message type "00" will show a message with just the "OK" button, while message type "02" will provide a message with three buttons: yes, no, cancel.
 
Message type "00" will show a message with just the "OK" button, while message type "02" will provide a message with three buttons: yes, no, cancel.

Revision as of 13:44, 24 December 2009

Dialog
OpCode:0x0024
Game Version:The Sims 2


Overview

This primitive is used to display informations like "The car pool will arrive in one hour" and / or to display messages to which the player can reply by clicking on buttons like "Yes", "No" and "Cancel".

Using the Instruction Wizard

Dialog Instruction Wizard

This wizard allows you to choose the type of dialog you want (see the table below) and then configure various things about that dialog depending on the type you chose. Things that do not apply to your chosen dialog type, are hidden on the wizard, so do not worry if it doesn't look exactly like the picture. For many of the dialog types, the main things to be chosen are the strings used for Title, Message and buttons. These strings are taken from Text List (STR#) resource 0x0000012D (see String Resources for all the different Text List usages). The wizard allows you to pick the string from a pop-up window, so you don't have to remember that line 0x00 in the text list is "01" in the operands field, line 0x01 is "02", and so on.


Dialog Types
Num Dialog Type
00 Message
01 yes-no message
02 yes-no-cancel message
03 text entry
04 tutorial
05 Phone Book - Services
06 Phone Book - Invite
07 Phone Book - Party
08 Text Notification
09 Stop Text Notification
0A Text Notification Modify
0B Magazine Rack
0C Jewelry Rack
0D VideoGame Rack
0E Food Rack
0F Special Phone Services
10 Clothing Purchase
11 Clothing Selection
12 Tutorial Task
13 List Selection
14 Clothing Try On
15 Vanity Table
16 TutorialNext
17 Baby Name
18 Set Aspiration
19 TutorialNext Modal
1A Set Major
1B Resurrectonomitron
1C Fire Forget Append
1D Move Grave To Lot
1E Visit Another Lot
1F Dating Services
20 Manage Groups
21 Phone Groups
22 Set Turn On/Off's
23 Customize Your Craftable
24 Sims Available for Hire
25 Choose a Lot to Purchase
26 Choose a Lot to Transfer Ownership: [none]
27 Choose a Lot
28 Set Price
29 Plan Business Outfit
2A Buy Food
2B Make Selection (Stock Remaining)
2C "
2D "
2E Buy Clothing
2F unknown (blank)
30 Set Wage
31 Suggest an Outfit
32 Would you like to hire?
33 Unknown
34 Unknown
35 Unknown
36 Unknown
37 Unknown
38 Unknown
39 Unknown
3A Unknown
3B Unknown
3C Unknown
3D Unknown
3E Unknown
3F Unknown
40 Unknown
41 Stock Fresh Produce (Found in Juicer)

Message type "00" will show a message with just the "OK" button, while message type "02" will provide a message with three buttons: yes, no, cancel.

Personal tools
Namespaces

Variants
Actions
Navigation
game select
Toolbox