Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
This question was closed Sep 18, 2018 at 01:34 PM by gabrijel1207.
avatar image
0
Question by gabrijel1207 · Sep 10, 2018 at 08:20 PM · script.beginnercardsadvice

What would be the best way of adding multiple, in play editable scripts to multiple GameObjects ?

I'm trying to make a card game and I've gotten to the point where it's basically Hearthstone with no cardtext. So now it's time to add said cardtext but hardcoding every card effect (especially since a lot are just "on play do x" and "On play do y" or "On death do x" etc.) would be not only time consuming but really bad since I want more of these effects/edit x and y during play/copy and remove the cardtext during play. So my question is if anyone has an idea or a tutorial that I can see to help me star adding these effects to my cards (the cards themselves are programmable objects).

Ty :D

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tormentoarmagedoom · Sep 10, 2018 at 09:36 PM 0
Share

Good day.

Are you asking a full structure format for a card game?

avatar image gabrijel1207 tormentoarmagedoom · Sep 11, 2018 at 01:27 AM 0
Share

Well I'm not 100% sure what "structure format" really means, but I just want someone more experienced than me to point me in the right direction, like maybe a guide link or something like that. I just want to learn if there's an easyer way to asociate and edit scripts while playing then the usual gameObject ... or GameObject.Find(...

1 Reply

  • Sort: 
avatar image
0

Answer by Pinkuboxu · Sep 18, 2018 at 10:24 AM

You can't edit C# or scriptables during run-time but you could use a scripting language asset. The other option would be to write your own proprietary interpreter, if you fancy writing your own scripting language. If that's too much work, Fungus has an implementation of the LUA scripting language. You would have to learn LUA but it's really not much different than most other languages. Besides that, Fungus has a node based visual scripting system that uses LUA in the form of "Flowcharts" that might come in handy along with Visual Novel/RPG style dialog UI prefabs among a bunch of other really good stuff. Best of all it's Free. https://assetstore.unity.com/packages/templates/systems/fungus-34184

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

165 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Card Game: Where do I begin 1 Answer

Why does Debug.Log continue to execute from Start() and why does InvokeRepeating() not? 1 Answer

[Absolute beginner] Play animation on trigger (trigger = several fallen objects) script 1 Answer

HingeJoint motor will not change values? 1 Answer

Jump animation not returning to normal? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges