Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YR] Add configuration for StringTables and correct some action param types #105

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions src/TSMapEditor/Config/Actions.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
; WaypointZZ,
; String,
; GlobalVariable (35),
; House (2)
; HouseType (2),
; StringTableEntry

; A trigger action can have up to 7 parameters. When defining types for these, they range from P1Type= to P7Type=.
; If a trigger action takes a waypoint, typically the waypoint is P7 (this is why FinalSun has "uses waypoint" instead of P7 type).
Expand Down Expand Up @@ -96,8 +97,9 @@ P2Type=Movie

[TextTrigger]
Name=Text Trigger
Description=Display the text from Tutorial section in Tutorial.ini (check from map first (Patch)).
P2Type=Text
Description=Display a stringtable string.
P1Type=-4
P2Type=StringTableEntry

[DestroyTrigger]
Name=Destroy Trigger
Expand Down Expand Up @@ -136,16 +138,19 @@ P2Type=Waypoint
[PlaySound]
Name=Play Sound
Description=Plays the sound effect specified. Use numbers from Sounds.ini.
P1Type=-7
P2Type=Sound

[PlayMusicTheme]
Name=Play Music Theme
Description=Plays the specified music track. Tracks are listed in Theme.ini.
P1Type=-8
P2Type=Theme

[PlaySpeech]
Name=Play Speech
Description=Plays the speech sound specified.
P1Type=-6
P2Type=Speech

[ForceTrigger]
Expand Down Expand Up @@ -533,11 +538,13 @@ Description=Toggles state of cargo train dropping crate.
[PlaySoundEffectRandom]
Name=Play Sound Effect (Random)
Description=Plays sound effect at random waypoint. Rules of action 19 apply.
P1Type=-7
P2Type=Sound

[PlaySoundEffectAtWaypoint]
Name=Play Sound Effect at Waypoint
Description=Plays sound effect specified at waypoint specified. Rules of action 19 apply.
P1Type=-7
P2Type=Sound
P7Type=WaypointZZ

Expand All @@ -559,8 +566,8 @@ P7Type=WaypointZZ
[TimerText]
Name=Timer Text
Description=Displays text string from CSF as mission timer text.
P1Type=-1
P2Type=String
P1Type=-4
P2Type=StringTableEntry

[FlashTeam]
Name=Flash Team
Expand Down Expand Up @@ -680,6 +687,7 @@ P2Type=HouseType
[CreateBuildingAt]
Name=Create Building At
Description=Owner of the trigger will gain this type of building at this waypoint. Overlays will be cleared and units bumped.
P1Type=-10
P2Type=Building
P7Type=Waypoint

Expand All @@ -701,6 +709,7 @@ P7Type=Waypoint
[SetSuperweaponCharge]
Name=Set Superweapon Charge
Description=The owner of this trigger will have this superweapon charged to this percent% if they have the superweapon. Takes an int (0-100).
P1Type=-11
P2Type=HouseType
P7Type=Number

Expand All @@ -712,12 +721,14 @@ P2Type=HouseType
[FlashBuildingsOfType]
Name=Flash Buildings of Type
Description=All buildings of this type owned by trigger owner will flash for this long.
P1Type=-9
P2Type=Building
P7Type=Number

[SuperweaponSetRechargeTime]
Name=Superweapon Set Recharge Time
Description=Changes the time (in frames) this superweapon takes to charge the next time it is reset or fired.
P1Type=-11
P2Type=SuperWeapon
P7Type=Number

Expand Down
6 changes: 6 additions & 0 deletions src/TSMapEditor/Config/FileManagerConfig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@
13=generic.mix
14=isogen.mix
15=local.mix
16=language.mix

20=ra2md.mix
21=cachemd.mix
22=conqmd.mix
23=genermd.mix
24=isogenmd.mix
25=localmd.mix
26=langmd.mix

; Specifies secondary MIX files.
; The editor will attempt to load these, but will start even if these are missing.
[SecondaryMIXFiles]
0=marble.mix ; borrowed from Final Alert 2

[StringTables]
0=ra2.csf
1=ra2md.csf
Loading