Skip to content

Posts from ERM 2.1 script errors.

No ratings yet — be the first to rate!
User Avatar
#1
Auto-translated
Hello, I'm having an issue with writing an ERM dialogue in the context of a map. Here's the code:
!!IF:M^%Z111 %Z112^;  !!IF:M^%Z113 %Z114^;
!!IF:F39/0/0/0/0/0; !!IF:E39/39; !!IF&v39=1:M^%Z40^;
!!IF&v39=2:M^%Z41^; !!IF&v39=3:M^%Z42^;
!!IF&v39=1:D45/88/0/16/0/0/0/0/0/0/0/0/19/20/88/88;
!!IF&v39=2:D45/88/0/16/0/0/0/0/0/0/0/0/18/20/88/88;
!!IF&v39=3:D45/88/0/16/0/0/0/0/0/0/0/0/18/19/88/88;
!!IF:F45/0/0/0/0/0; !!IF:E45/45;

Could you help me understand the variables?
User Avatar
#2
Auto-translated
Hmm, you've posted a rather interesting snippet of code; it's not immediately clear what it does... but can we see the receiver in this action?
User Avatar
#3
Auto-translated
Sorry, what?

Added 1 minute ago
Is this the variable block itself?
User Avatar
#4
Auto-translated
I'll explain: the receiver is an element on the map that triggers the action.
User Avatar
#5
Auto-translated
Ah yes, here you go...
ZVCE
!?OB15/9/0&v21>0/v32=1;
User Avatar
#6
Auto-translated
Lol)) well, firstly, your trigger has ZVCE instead of ZVSE, so no wonder nothing works.
User Avatar
#7
Auto-translated
Fixed it, but it still doesn't work.
User Avatar
#8
Auto-translated
of course, you need to dig deeper. The usual dialogue format is as follows:

!!IF: D#/#/#/0/0/0/0/0/0/0/0/#/#/#/#;

where the first 3 # are condition flags, and the last 4 are the answers already recorded in the flags.
User Avatar
#9
Auto-translated
How do you insert numerical answers into the flags?
User Avatar
#10
Auto-translated
No, it's not necessary; you can do it like this:

!!VRz#:S^text^;

with flags - text.
User Avatar
#11
Auto-translated
Can you write in Russian there?
User Avatar
#12
Auto-translated
of course, but only in quotes).
User Avatar
#13
Auto-translated
That's great. How do I get the answer result then?
User Avatar
#14
Auto-translated
It’s simple: the faction whose flag number the user selects will receive a positive bonus.
User Avatar
#15
Auto-translated
In other words, it is equivalent to the function:
!?IF&v21>0/v32=1; 

Statistics

Welcome our newest member: Emil