Jump to content

Photo

HELP! The Doctor and River need a dual (seperate) health counter

active hero sccript DMap passive subscreen script global script

  • Please log in to reply
3 replies to this topic

#1 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 29 December 2020 - 07:36 PM

I really need a script.
But a brilliant genius like my Whovian fellow Zoria is logically very buisy.
...and I am glad that there are people like him and Rob and all Devs.
who are always working to offer new great features!!!
So, I don't wanna be annyoing.

I ask you, like I did many times before  :love: 

This time I need a script for my Doctor Who project.
I wrote a dual character header (add follower ffc, follower/player sprite + equipmet switch by pressing Ex2,
overhead + LTM Ladder (always face up features)).
But what I really need to complete the dual char settings, is a script for a numeric health counter system
...like in RPGs-
(I never used numeric health counters before, guess it requires a global script)

But that's not all...
...I also need a script for a second counter, also used for a (second) health counter , that will be added when link
recieves a specific check item (which is also used to add the scripted follower and enable the the Tile Modi-/Follower/Equip Change script, in my current header).
...guess it would be best to do this, by a passive subscreen script, or also as a part of global functions.

...and (last but not least) it needs to dectect if Link has another Check item (called LTM_River in my script,
used for the tile modi, to switch between the Doctor's and River Song's tile pages, in my current header)
...for example:
 

if(Link->Item[LTM_RIVER])

...deal damage to health counter #2
else, to health counter #1
...don't know if best way would be a hero script, or another function in the active global script

btw
I use 2.55 Alpha 85

Sorry, for my bad english.
I'm a lil' tired.


Edited by Bagu, 30 December 2020 - 05:13 AM.

  • SkyLizardGirl likes this

#2 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 30 December 2020 - 06:36 AM

You'd probably want to just use 2 'Counter[]'s, the HP one and one of the script ones. If you change characters, swap the values in the two counters. Display both on the subscreen (which does NOT need a script to do so, that can be done in-engine).

Definitely don't have time to actually write that out as a script, but that's the general idea you are looking for.


  • SkyLizardGirl and Bagu like this

#3 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 30 December 2020 - 07:42 AM

Thank for your reply.
I will keep on trying to work out something, on my own.
But I still think, I won't be able to realize these functions without much help.

...but for the moment you gave me many helpful clues, to think about.

...if you or anybody else would like, to have a look at the current version of my dual_char.zh, I will load it up on pastebin
and share the file via dropbox.
Maybe it's useful, to find a solution.
 


Edited by Bagu, 30 December 2020 - 08:37 AM.

  • SkyLizardGirl likes this

#4 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 12 January 2021 - 08:55 PM

I know, it took some days.
...but here's the current version of my dual_char test header.

I will also provide the related global header (modified version of classic.zh, including the nessessary updates).
...I'm sure, there are a hell lot of things, that I could make better, but I'm still beginner in scripting.

https://pastebin.com/aJrH5Bak

If someone can help me, with the hp counter functions (swap values etc.), it would be fantastic.
...I don't even know, how to enable numeral hp counters.

But NOW, I'm gonna' get some sleep first ;)


Edited by Bagu, 13 January 2021 - 08:17 AM.




Also tagged with one or more of these keywords: active hero sccript, DMap passive subscreen script, global script

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users