User Tools

Site Tools


4rpl:commands:setcustomobjectivetext

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:setcustomobjectivetext [2024/09/08 16:50] – [Examples] digitalizedMind4rpl:commands:setcustomobjectivetext [2024/09/08 17:16] (current) – Modified original example back and made page neater. Vertu
Line 10: Line 10:
  
 ===== Examples ===== ===== Examples =====
- +<code 4rpl> 
-Here is a function to simplify getting the custom objective text to look like the vanilla objectives+SetCustomObjectiveText("Defeat Boss"
 +</code> 
 +\\ 
 +function that formats the text to look like the vanilla objectives:
 <code 4rpl> <code 4rpl>
 "Destroy Devices" "1/2" @SetText "Destroy Devices" "1/2" @SetText
  
-:SetText ->_text1 ->_text0+:SetText 
 +    ->_text1 ->_text0
     "<line-height=0%><align=left>" <-_text0     "<line-height=0%><align=left>" <-_text0
     LF "<align=right>" <-_text1 "<#00000000>-"     LF "<align=right>" <-_text1 "<#00000000>-"
     concat4 concat3 SetCustomObjectiveText     concat4 concat3 SetCustomObjectiveText
 </code> </code>
-{{:4rpl:commands:screenshot_1.png?200|}}+{{:4rpl:commands:screenshot_1.png?200|}}\\ 
 +\\
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/setcustomobjectivetext.txt · Last modified: 2024/09/08 17:16 by Vertu