I'm playing around with slices today. I've been able to create and manipulate them through scripting but...
If I create a slice in the slice editor via Custom, what script is used to draw it on screen? The tutorial implied it was "load slice collection (x)" but Hampster returns an undefined error.
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
NinjaOverdrive wrote:
Ohhhkay. That one sounds a bit tricky. I'm guessing I would need to check hero's x,y coordinates and place it under the If Key Pressed script on the map?
Quote:
You'll need to script that.
Ohhhkay. That one sounds a bit tricky. I'm guessing I would need to check hero's x,y coordinates and place it under the If Key Pressed script on the map?
Actually, this is really easy. It still requires scripting, but it only requires a single command (in your map autorun script) -- which Moogle hasn't noticed yet.
Code:
set npc obstructs(npc id/reference, false)
To prevent something like an on-keypress which contains a wait being run repeatedly, use a tag or global variable:
Code:
plotscript, myscript, begin
if (check tag (tag: in key handler)) then (exit script)
set tag (tag: in key handler, on)
...
set tag (tag: in key handler, off)
end
if (check tag (tag: in key handler)) then (exit script)
set tag (tag: in key handler, on)
...
set tag (tag: in key handler, off)
end
Quote:
1) I created a max HP boosting item script. It calls up the Pick Hero menu when you select the item and if you use the item it works fine. But a) if you cancel out of the menu the item becomes disabled. It also becomes disabled after you use it, well, it leaves a blank slot with a x1 in the Item menu and I have to put it in the Trash to get rid of it.
That's a bug I haven't seen before. Could you please email or upload your game somewhere (eg. to bugzilla), or maybe just take a screenshot of the item definition page?
Quote:
If I create a slice in the slice editor via Custom, what script is used to draw it on screen? The tutorial implied it was "load slice collection (x)" but Hampster returns an undefined error.
Are you using zenzizenzic? If are you, then you must have an old copy of plotscr.hsd lying around, replace it.
Quote:
That's a bug I haven't seen before. Could you please email or upload your game somewhere (eg. to bugzilla), or maybe just take a screenshot of the item definition page?
Which would you prefer? You just need a shot of the Item screen, I can get that up pretty quickly.
Quote:
Are you using zenzizenzic? If are you, then you must have an old copy of plotscr.hsd lying around, replace it.
Nope, still using ypsiliform+3. Where can I snag the latest version of the hsd file?
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
Emailing me your RPG file, with a saved game if needed, is definitely preferred. Seeing the item editor wouldn't really be that helpful.
Heh, that isn't going to work. load slice collection is new in Zenzizenzic. In whatsnew.txt the slice collection editor is documented as being new in Zenzizenic, but it's actually been around since 2008, but didn't have any use other than playing around with slices.
Quote:
Nope, still using ypsiliform+3. Where can I snag the latest version of the hsd file?
Heh, that isn't going to work. load slice collection is new in Zenzizenzic. In whatsnew.txt the slice collection editor is documented as being new in Zenzizenic, but it's actually been around since 2008, but didn't have any use other than playing around with slices.
New problem.
I deleted the map data on one of my maps 'cause I wanted to redesign it. Now I'm trying to place my NPCs back on the map.
I have a door that displays a message if Tag 3=OFF. One of the NPCs has a text that toggles Tag 3=ON so the message at the door will disappear. This was all working a few days ago.
Now, however, the text that toggles Tag 3 doesn't appear to be doing anything as the message at the door persist no matter what. I'm quite baffled at why this suddenly stopped working correctly.
I've doubled checked all the text and tags. NPC Text Always Set Tag 3=On. Text on Door Appears if Tag 3=OFF. Certainly this wouldn't have anything to do with me deleting the map data, huh?
Update: I eventually just had to create and implement an entire new set of tags because Tag-2 and Tag-3 stopped responding and weren't working on any map for any reason. I'm guessing something must've gotten corrupted there or something I'm not even familiar with occured. But once I created brand tags the events started working correctly.
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
I deleted the map data on one of my maps 'cause I wanted to redesign it. Now I'm trying to place my NPCs back on the map.
I have a door that displays a message if Tag 3=OFF. One of the NPCs has a text that toggles Tag 3=ON so the message at the door will disappear. This was all working a few days ago.
Now, however, the text that toggles Tag 3 doesn't appear to be doing anything as the message at the door persist no matter what. I'm quite baffled at why this suddenly stopped working correctly.
I've doubled checked all the text and tags. NPC Text Always Set Tag 3=On. Text on Door Appears if Tag 3=OFF. Certainly this wouldn't have anything to do with me deleting the map data, huh?
Update: I eventually just had to create and implement an entire new set of tags because Tag-2 and Tag-3 stopped responding and weren't working on any map for any reason. I'm guessing something must've gotten corrupted there or something I'm not even familiar with occured. But once I created brand tags the events started working correctly.
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
Tags selected in hero (eg. "Set tag if hero is in party") and items (eg. "if in inventory") editors are special, and will be automatically set or unset in lots of different situations. Are you sure you haven't accidentally used tags 2 or 3 in this way? (Added to TODO list: indicate in tag browser which tags are used in this way)
It's possible that deleting map data is buggy, since it's a newish feature which probably almost noone has used.
It's possible that deleting map data is buggy, since it's a newish feature which probably almost noone has used.
I'm trying to set up a challenging puzzle with moving NPCS that harm the player if touched. However, using the
How do you make it so that it subtracts the number and not reset the number to that value?
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
Code:
automatically sets the stat to 2, which I thought would do current HP minus 2.
Set hero stat(me,stat:HP,current stat--2
How do you make it so that it subtracts the number and not reset the number to that value?
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~
Oh, I see you were reading this page, which unfortunately was wrong. I've fixed it now.
TMC wrote:
Oh, I see you were reading this page, which unfortunately was wrong. I've fixed it now.
Uhh. I'm not so sure about that. When I used the new script it zeroed my Max HP and didn't affect the current HP which makes absolutely no sense to me since there's NO mention of maximum HP anywhere in the script.
Like a drifter I was born to walk alone. ~Whitesnake~
1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless!
~Cereal Killer, Hackers~



