Shadowrun Returns

Shadowrun Returns

探索并分享自定义的 Shadowruns
通过易于使用的 SRR 编辑器来创建您自己的故事和战役,将它们与 Steam 创意工坊社区分享。通过探索全部的西雅图战役,查看它是如何被创造的,以此来构造您自己的创造物。点击这里以了解更多,并开始学习如何使用编辑器。
VoidByte 2013 年 10 月 22 日 下午 3:31
Showing Variables in Conversation
Do anyone know how to show the value of a conversation inside a conversation?

So that i can define a var like " var_uncheckedEmails : 4 " and let the Player go to a Computer, checking is Emails and the Text on the Sceen says: " You have 4 unchecked Mails ".

Ive tried:
" You have $(var_uncheckedEmails) Emails "
" You have $(l.var_uncheckedEmails) Emails "
" You have $(n.var_uncheckedEmails) Emails "

nothing works.
< >
正在显示第 1 - 10 条,共 10 条留言
daskindt 1 2013 年 10 月 22 日 下午 5:15 
$(storyorscene.variablename)
fredingue 1 2013 年 10 月 22 日 下午 9:49 
VoidByte 2013 年 10 月 23 日 上午 4:42 
Thank you very much guys.
But the game is loading the Variable just once eh? If i check an email, and its marked as "checked" the counter dont decrease. Its still 4. (i was using "Add (-10) to Story.unchecked Emails)". The internal Variable works, but it displays everytime the same value.


Easier Example: Have an example.bankAccount variable integer on 10.
Going to a bank device, show "accounts current".
You have: $(example.bankAccount)¥
shows me: "You have: 10¥"
Get Money, using:
If example.bankAccount higher or equal to (10)
to check and then
Add (-10) to example.bankAccount
then
Add (10) Nuyen to player

Doing the same again wont work, because the players account is decreased off 10 Nuyen. But if i get a new Account Current, it still says "You have: 10¥".
最后由 VoidByte 编辑于; 2013 年 10 月 23 日 上午 4:45
daskindt 1 2013 年 10 月 23 日 下午 1:52 
@VoidByte

It should be able to update. I use Text Expansion to track numerous Scene (int) Variables in my UGC, Shadowrun Returns Companion.

I use (int) Variables to track the players Attributes and then use Text Expansion in dialogs to display the current value of any given Attribute.

It's a bit trickier with converting Attributes to (int) variables, I have to use Triggers for each Attribute that set the current (int) variable to the value of the base Attribute. Each time I allow the player to modify an Attribute, I have to fire the Trigger that recalculates the (int) variable. But I can then use a simple Text Expansion to display the given variable, say AttributeBody as an example.

How do you have your (int) variable initially set?
Are you using Triggers from Scene/Story data or are you using built in dialog triggers?
How many different triggers/dialogs modify your (int) variable?

If you set your variable to say 4 for Unread Emails.
Then when each email is selected you modify the variable with Do: Add (-1) to (int) variable.
You should be able to have a dialog option that calls $(scene.variable) to display that current value.

For most of mine, I'm using the embedded dialog triggers. I use "Action when this Link is chosen" and then "Add +1 to variable" and then anytime I use Text Expansion to call that variable it shows the correct, current value.
VoidByte 2013 年 10 月 23 日 下午 2:33 
Thanks for answering me.

Ahm its currently a whole Online-Banking System where everything works fine. Excapt the Value on the Account Current.

Given Text its:
Herzlich Willkommen, $(l.name), Ihr derzeitiges Kontosaldo beträgt: $(story.playerAccount)¥
returns: "Ihr derzeitiges Kontosaldo beträgt: 1000¥" its german for "your Account current is: 1000¥". This Value is correct at beginning.
But what ever i transact from this account in future, the value dont change. Not if i leave the computer-terminal and re-check and not inside the Dialog even not if i give the value out as a "diplay Text over Actor"-Text.

If i make a "if the value of $(story.playerAccount) is greater or equal" condition, it shows me that the value is correct decreased.

The player is able to transfer Money from the Credstick to the Account with
Add (10) to story.playerAccount
and to "download" money from the Account with
Add (-10) to story.playerAccount
. After this transaction, i click on "get account current" and it still says "you have 1000¥".. if i transact 1000¥ from account to credstick, it also says that i have 1000¥. BUT the dialog options, saved with the condition
if story.playerAccount have greater then or equal to (1000)
shows me that the value of the variable is seting up correct, because everything thats higher then the account current, is hidden.
daskindt 1 2013 年 10 月 23 日 下午 2:47 
How are you setting the initial value of the story (int) variable "playerAccount"?
VoidByte 2013 年 10 月 23 日 下午 2:48 
inside the "Edit Content Pack Properties"-Dialog where i set the variable up.
daskindt 1 2013 年 10 月 23 日 下午 2:55 
I just sent you a friend request. I have a few minutes if you want to try and chat and see if we can't figure out what is going on. It's a little hard to figure out with just the forum back and forth.
wolf_5963 2013 年 12 月 17 日 下午 8:59 
please post the solution.
VoidByte 2013 年 12 月 17 日 下午 9:36 
There is just a work around, no solution. You can mage a local variable thet updates itself with an trigger/event from the Storyvariable. For example:

IF (EVENTisFIRE)
DO: $MyBridgeVariable is equal to $MyStoryVariable.
Then, when ever you want to see the current state of the variable, you fire the event and give out the $MyBridgeVariable.

最后由 VoidByte 编辑于; 2013 年 12 月 17 日 下午 9:37
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50